Browse Source

Add table header in Plugins page (#37692).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21879 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA 1 year ago
parent
commit
5b0e4a8e2d
2 changed files with 12 additions and 0 deletions
  1. 8
    0
      app/views/admin/plugins.html.erb
  2. 4
    0
      test/functional/admin_controller_test.rb

+ 8
- 0
app/views/admin/plugins.html.erb View File

@@ -3,6 +3,13 @@
<% if @plugins.any? %>
<div class="autoscroll">
<table class="list plugins">
<thead><tr>
<th><%= l(:field_name) %> / <%= l(:field_description) %></th>
<th><%= l(:field_author) %></th>
<th><%= l(:label_version) %></th>
<th></th>
</tr></thead>
<tbody>
<% @plugins.each do |plugin| %>
<tr id="plugin-<%= plugin.id %>">
<td class="name"><span class="name"><%= plugin.name %></span>
@@ -14,6 +21,7 @@
<td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<p><a href="#" id="check-for-updates"><%= l(:label_check_for_updates) %></a></p>

+ 4
- 0
test/functional/admin_controller_test.rb View File

@@ -156,6 +156,10 @@ class AdminControllerTest < Redmine::ControllerTest
get :plugins
assert_response :success

assert_select 'th:nth-of-type(1)', :text => 'Name / Description'
assert_select 'th:nth-of-type(2)', :text => 'Author'
assert_select 'th:nth-of-type(3)', :text => 'Version'

assert_select 'tr#plugin-foo' do
assert_select 'td span.name', :text => 'Foo plugin'
assert_select 'td.configure a[href="/settings/plugin/foo"]'

Loading…
Cancel
Save