From f25f9f87e6e3104f14d12eabfa4bd2b62e885652 Mon Sep 17 00:00:00 2001 From: "Ryan T. Hosford" Date: Mon, 12 Jan 2015 23:10:17 -0600 Subject: [PATCH] Puts th inside thead, puts tr in tbody (plugins#updated) --- app/views/plugins/updated.html.haml | 40 +++++++++++++++-------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/app/views/plugins/updated.html.haml b/app/views/plugins/updated.html.haml index 985bde5..392e9c2 100644 --- a/app/views/plugins/updated.html.haml +++ b/app/views/plugins/updated.html.haml @@ -5,25 +5,27 @@ - else = form_tag(bulk_upgrade_plugins_path, method: :patch) do %table{class: "table table-striped table-hover"} - %tr - %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| + %thead %tr - %td - = check_box_tag("plugins[]", plugin.gem_name, false, id: "plugin_#{plugin.gem_name}") - %label{for: "plugin_#{plugin.gem_name}"} - = plugin.gem_name - %td - = plugin.authors - %td - = plugin.summary - %td - = plugin.installed_version - %td - = plugin.latest_version + %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') + %tbody + - @plugins.each do |plugin| + %tr + %td + = check_box_tag("plugins[]", plugin.gem_name, false, id: "plugin_#{plugin.gem_name}") + %label{for: "plugin_#{plugin.gem_name}"} + = 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"