Commit 73c0b43f6a5757167518fa9e14019e4590abb591
1 parent
6954ede0
Exists in
master
and in
29 other branches
Slightly better plugin administration page
ActionItem2392
Showing
1 changed file
with
23 additions
and
16 deletions
Show diff stats
app/views/plugins/index.rhtml
1 | 1 | <h1><%= _('Manage plugins') %></h1> |
2 | -<%= _('Here you can enable or disable any plugin of your environment.')%> | |
2 | + | |
3 | +<p> | |
4 | +<%= _('Select which plugins you want to enable in your environment') %> | |
5 | +</p> | |
3 | 6 | |
4 | 7 | <% labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> |
5 | 8 | |
6 | -<table> | |
7 | - <tr> | |
8 | - <th><%= _('Plugin') %></th> | |
9 | - <th><%= _('Description') %></th> | |
10 | - <th><%= _('Enabled?') %></th> | |
11 | - </tr> | |
12 | - <%= hidden_field_tag('environment[enabled_plugins][]', '') %> | |
13 | - <% @active_plugins.each do |plugin| %> | |
14 | - <tr> | |
15 | - <td><%= plugin.has_admin_url? ? link_to(plugin.plugin_name, plugin.admin_url) : plugin.plugin_name %></td> | |
16 | - <td><%= plugin.plugin_description %></td> | |
17 | - <td><%= check_box_tag "environment[enabled_plugins][]", plugin, @environment.enabled_plugins.include?(plugin.to_s), :id => plugin.plugin_name %></td> | |
18 | - </tr> | |
19 | - <% end %> | |
20 | -</table> | |
9 | + <table> | |
10 | + <% @active_plugins.sort_by(&:plugin_name).each do |plugin| %> | |
11 | + <tr> | |
12 | + <td style='vertical-align: top'><%= check_box_tag "environment[enabled_plugins][]", plugin, @environment.enabled_plugins.include?(plugin.to_s), :id => plugin.plugin_name %></td> | |
13 | + <td> | |
14 | + <%= hidden_field_tag('environment[enabled_plugins][]', '') %> | |
15 | + <strong><%= plugin.plugin_name %></strong> | |
16 | + <br/> | |
17 | + <%= plugin.plugin_description %> | |
18 | + <% if plugin.has_admin_url? %> | |
19 | + <br/> | |
20 | + <br/> | |
21 | + <%= link_to(_('Configuration'), plugin.admin_url) %> | |
22 | + <% end %> | |
23 | + </p> | |
24 | + </td> | |
25 | + </tr> | |
26 | + <% end %> | |
27 | + </table> | |
21 | 28 | |
22 | 29 | <div> |
23 | 30 | <% button_bar do %> | ... | ... |