summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-16 15:22:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-16 15:22:48 +0000
commit97252c26eefe3dfa5e0c3cb059fe66cb21b2e34d (patch)
treee41bfd5350ac7a44aa89849834f8d432b9014960 /app
parent94b5bbcb5d225ec1bfe29e6aa4e8b8eb7d137abf (diff)
downloadredmine-97252c26eefe3dfa5e0c3cb059fe66cb21b2e34d.tar.gz
redmine-97252c26eefe3dfa5e0c3cb059fe66cb21b2e34d.zip
Adds plugin id attribute.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2038 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin_controller.rb2
-rw-r--r--app/views/admin/plugins.rhtml12
2 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 90ec59098..119e2b922 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -50,7 +50,7 @@ class AdminController < ApplicationController
end
def plugins
- @plugins = Redmine::Plugin.registered_plugins
+ @plugins = Redmine::Plugin.registered_plugins.values.sort
end
# Loads the default configuration
diff --git a/app/views/admin/plugins.rhtml b/app/views/admin/plugins.rhtml
index 5a208fe02..9cabd42ae 100644
--- a/app/views/admin/plugins.rhtml
+++ b/app/views/admin/plugins.rhtml
@@ -2,13 +2,13 @@
<% if @plugins.any? %>
<table class="list">
- <% @plugins.keys.sort {|x,y| x.to_s <=> y.to_s}.each do |plugin| %>
+ <% @plugins.each do |plugin| %>
<tr class="<%= cycle('odd', 'even') %>">
- <td><%=h @plugins[plugin].name %></td>
- <td><%=h @plugins[plugin].description %></td>
- <td><%=h @plugins[plugin].author %></td>
- <td><%=h @plugins[plugin].version %></td>
- <td><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.to_s) if @plugins[plugin].configurable? %></td>
+ <td><%=h plugin.name %></td>
+ <td><%=h plugin.description %></td>
+ <td><%=h plugin.author %></td>
+ <td><%=h plugin.version %></td>
+ <td><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %></td>
</tr>
<% end %>
</table>