diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 15318605..9b87f82f 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -67,20 +67,25 @@ <% more_top_menu_items.each do |item| %> <%= render_menu_node(item) %> <% end %> + <%# TODO: Extract to helper %> + <% if User.current.admin? %> + <% menu_items_for(:admin_menu) do |item| -%> +
  • <%= link_to h(item.caption), item.url, item.html_options %>
  • + <% end -%> + <% end %>
  • <%= render_menu_node(help_menu_item) %> <% unless User.current.logged? %> -
  • +
  • <% else %> -