Merge pull request #129 from rthbound/use_thead_for_th2

Puts th inside thead, puts tr in tbody (plugins#updated)
This commit is contained in:
uu59 2015-01-13 14:18:24 +09:00
commit ea74c384b5

View File

@ -5,25 +5,27 @@
- else - else
= form_tag(bulk_upgrade_plugins_path, method: :patch) do = form_tag(bulk_upgrade_plugins_path, method: :patch) do
%table{class: "table table-striped table-hover"} %table{class: "table table-striped table-hover"}
%tr %thead
%th.col-xs-2= t('plugins.common.name')
%th.col-xs-2= t('plugins.common.authors')
%th.col-xs-6= t('plugins.common.summary')
%th.col-xs-1= t('plugins.common.installed_version')
%th.col-xs-1= t('plugins.common.latest_version')
- @plugins.each do |plugin|
%tr %tr
%td %th.col-xs-2= t('plugins.common.name')
= check_box_tag("plugins[]", plugin.gem_name, false, id: "plugin_#{plugin.gem_name}") %th.col-xs-2= t('plugins.common.authors')
%label{for: "plugin_#{plugin.gem_name}"} %th.col-xs-6= t('plugins.common.summary')
= plugin.gem_name %th.col-xs-1= t('plugins.common.installed_version')
%td %th.col-xs-1= t('plugins.common.latest_version')
= plugin.authors %tbody
%td - @plugins.each do |plugin|
= plugin.summary %tr
%td %td
= plugin.installed_version = check_box_tag("plugins[]", plugin.gem_name, false, id: "plugin_#{plugin.gem_name}")
%td %label{for: "plugin_#{plugin.gem_name}"}
= plugin.latest_version = plugin.gem_name
%td
= plugin.authors
%td
= plugin.summary
%td
= plugin.installed_version
%td
= plugin.latest_version
= submit_tag t("terms.install_latest"), class: "btn btn-primary" = submit_tag t("terms.install_latest"), class: "btn btn-primary"