diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-11 18:10:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-11 18:10:21 +0000 |
commit | d7718470785c67aaede689a3651dfe2b2fd53bfb (patch) | |
tree | b90d7f07bee68e78f257d2963c13214bc26cf4f5 /app/views/admin | |
parent | 3f4defe48215c460933343fffdb6888603e62492 (diff) | |
download | redmine-d7718470785c67aaede689a3651dfe2b2fd53bfb.tar.gz redmine-d7718470785c67aaede689a3651dfe2b2fd53bfb.zip |
Pluggable admin menu (patch #2031 by Yuki Sonoda with slight changes).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2022 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/index.rhtml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/index.rhtml b/app/views/admin/index.rhtml index 438f72a30..e2d160730 100644 --- a/app/views/admin/index.rhtml +++ b/app/views/admin/index.rhtml @@ -34,6 +34,12 @@ <%= link_to l(:label_settings), :controller => 'settings' %> </p> +<% menu_items_for(:admin_menu) do |item, caption, url, selected| -%> + <%= content_tag 'p', + link_to(h(caption), item.url, item.html_options), + :class => ["icon22", "icon22-#{item.name}"].join(' ') %> +<% end -%> + <p class="icon22 icon22-info"> <%= link_to l(:label_information_plural), :controller => 'admin', :action => 'info' %> </p> |