1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-05 16:43:25 +00:00

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
This commit is contained in:
Go MAEDA 2022-10-01 06:54:27 +00:00
parent ca516e8c25
commit 5b0e4a8e2d
2 changed files with 12 additions and 0 deletions

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>

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"]'