From 68e33f3e5a72c33596e4bcde5672397182d356e9 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 23 Aug 2016 19:01:17 +0200 Subject: [PATCH] Turned moderate menu item into admin item with submenu --- app/views/layouts/_topbar.slim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index d2fc92c..8c6034a 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -13,8 +13,6 @@ header a href="/" Home li class=('active' if controller_name=='packages') a href="/packages" Explore - //li class=('active' if controller_name=='upload') - //a href="/upload" Contribute //li.has-dropdown //a href="#" Distributions //ul.dropdown @@ -26,10 +24,13 @@ header li class=('active' if controller_name=='welcome' and action_name=='about') a href="/about" About li.divider - // TODO: Show link for admin/moderation view if admin is logged in + // TODO: Check correct classes in Zurb/Foundation for top bar! - if user_signed_in? - li class=('active' if controller_name=='moderate') - = link_to 'Moderate', moderate_path + li.has-dropdown + a href='#' Admin + ul.dropdown + li = link_to 'Moderate', moderate_path + li = link_to 'Logs', logs_path li.has-form - if user_signed_in? = link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete