2012-08-24 17:06:59 +01:00
|
|
|
%table#myTable.tablesorter.platform-maintainers.static-search{:cellspacing => "0", :cellpadding => "0"}
|
2012-05-29 13:40:25 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2012-08-24 16:19:26 +01:00
|
|
|
%th.centered= t("activerecord.attributes.maintainer.package_name")
|
|
|
|
%th.centered= t("activerecord.attributes.maintainer.package_type")
|
|
|
|
%th.centered= t("activerecord.attributes.maintainer.version")
|
|
|
|
%th.centered{:colspan => 2}= t("activerecord.models.maintainer")
|
|
|
|
%th.centered= t("activerecord.attributes.maintainer.updated_at")
|
2012-08-24 17:06:59 +01:00
|
|
|
%tr.search
|
|
|
|
-# TODO: change filter to Backbone.js
|
|
|
|
%th{:colspan => 6, :rowspan => 1}
|
|
|
|
= form_tag platform_maintainers_path(@platform), :method => :get do |f|
|
|
|
|
= text_field_tag('q', params[:q], :placeholder => t("layout.maintainers.search_by_package"), :class => params[:q].present? ? 'black' : 'gray')
|
|
|
|
%input{:type => 'submit', :value => t("layout.search.header")}
|
|
|
|
= button_to t('layout.clear'), {:action => :index} , :method => :get
|
|
|
|
|
2012-05-29 13:40:25 +01:00
|
|
|
%tbody
|
2012-08-24 16:19:26 +01:00
|
|
|
- MaintainerPresenter.present_collection(@maintainers) do |pr|
|
2012-05-29 13:40:25 +01:00
|
|
|
%tr{:class => cycle("odd", "even")}
|
2012-08-24 16:19:26 +01:00
|
|
|
%td= pr.package_link
|
|
|
|
%td= pr.package_type
|
|
|
|
%td= pr.package_version_release
|
|
|
|
%td= pr.maintainer_link
|
|
|
|
%td= pr.maintainer_email_link
|
|
|
|
%td= pr.package_updated_at
|