2012-01-12 16:37:50 +00:00
|
|
|
- columns = [{:type => 'html', :searchable => false}, {:type => 'html'}, {:type => nil, :sortable => false, :searchable => false}]
|
|
|
|
= raw datatable(columns, {:sort_by => "[1, 'asc']", :search_label => t("layout.search_by_name"), :processing => t("layout.processing"),
|
2012-03-13 15:05:33 +00:00
|
|
|
:pagination_labels => {:previous => t("datatables.previous_label"), :next => t("datatables.next_label")},
|
2012-01-12 16:37:50 +00:00
|
|
|
:empty_label => t("datatables.empty_label"),
|
|
|
|
:info_label => t("datatables.info_label"),
|
|
|
|
:info_empty_label => t("datatables.info_empty_label"),
|
|
|
|
:filtered_label => t("datatables.filtered_label"),
|
2012-03-13 15:05:33 +00:00
|
|
|
:table_dom_id => 'datatable',
|
|
|
|
:auto_width => 'false',
|
2012-01-12 16:37:50 +00:00
|
|
|
:ajax_source => "#{url_for :controller => :repositories, :action => :projects_list, :id => @repository.id}" })
|
2011-12-30 22:42:58 +00:00
|
|
|
|
2012-03-13 15:05:33 +00:00
|
|
|
%table#datatable.tablesorter.repo-projects{:cellspacing => 0, :cellpadding => 0}
|
2012-01-11 21:12:56 +00:00
|
|
|
%thead
|
|
|
|
%tr
|
2012-03-13 15:05:33 +00:00
|
|
|
%th.th1= t("activerecord.attributes.user.uname")
|
|
|
|
%th.th2= t("activerecord.attributes.project.name")
|
|
|
|
%th.buttons
|
2012-01-11 21:12:56 +00:00
|
|
|
%tbody
|
2012-01-12 16:37:50 +00:00
|
|
|
%br
|