diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:52:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:52:56 +0000 |
commit | c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b (patch) | |
tree | 459eb338daf1a88b8819b47a9ecb2d024426a7d6 /app/views/admin | |
parent | c93fccc84a939b14bd5d67d58514bd2ef58e4a08 (diff) | |
download | redmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.tar.gz redmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.zip |
Code cleanup: implement Plugin#to_param for generating routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10995 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/plugins.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erb index f4e4d2b92..25716ff9e 100644 --- a/app/views/admin/plugins.html.erb +++ b/app/views/admin/plugins.html.erb @@ -3,14 +3,14 @@ <% if @plugins.any? %> <table class="list plugins"> <% @plugins.each do |plugin| %> - <tr class="<%= cycle('odd', 'even') %>"> + <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>"> <td><span class="name"><%=h plugin.name %></span> <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %> <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %> </td> <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td> <td class="version"><%=h plugin.version %></td> - <td class="configure"><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %></td> + <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td> </tr> <% end %> </table> |