Defect #37692 » plugins-table-header.patch
| app/views/admin/plugins.html.erb | ||
|---|---|---|
|
<% 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>
|
||
| ... | ... | |
|
<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>
|
||
| test/functional/admin_controller_test.rb | ||
|---|---|---|
|
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"]'
|
||
- « Previous
- 1
- 2
- 3
- Next »