New admin menu

This commit is contained in:
Chrisbr 2014-05-22 18:19:07 +02:00
parent 29cd9d0132
commit 89fb059aaa
35 changed files with 209 additions and 170 deletions

View file

@ -14,11 +14,7 @@
- if @conference && !@conference.short_title.nil?
%p.navbar-text
= @conference.short_title
- if user_signed_in?
- if has_role?(current_user, "admin") || has_role?(current_user, "organizer")
- if controller.class.name.split("::").first=="Admin"
- if @conference and not @conference.short_title.nil?
= render 'layouts/admin_menu'
-if user_signed_in?
%ul.nav.navbar-nav.navbar-right
%li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#", id: "current-user-detail"}