From cd8e8a5c7e711eeeefa984796ff724dc494a59a7 Mon Sep 17 00:00:00 2001 From: Chrisbr Date: Fri, 23 May 2014 14:19:57 +0200 Subject: [PATCH] Dropdown shows now context --- app/views/layouts/_admin_sidebar.html.haml | 8 ++++---- app/views/layouts/_admin_sidebar_index.html.haml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/_admin_sidebar.html.haml b/app/views/layouts/_admin_sidebar.html.haml index d3109a49..e60b288e 100644 --- a/app/views/layouts/_admin_sidebar.html.haml +++ b/app/views/layouts/_admin_sidebar.html.haml @@ -1,14 +1,14 @@ %ul.nav.nav-stacked.mySidebar .btn-group %button{type:'button', class:'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'} - %span.glyphicon.glyphicon-home - Conferences + %span.glyphicon.glyphicon-cog + = @conference.short_title %span.caret %ul.dropdown-menu{role:'menu'} %li = link_to(admin_conference_index_path) do - %span.glyphicon.glyphicon-dashboard - All + %span.glyphicon.glyphicon-home + All Conferences - @conferences.each do |conference| %li = link_to(admin_conference_path(conference.short_title)) do diff --git a/app/views/layouts/_admin_sidebar_index.html.haml b/app/views/layouts/_admin_sidebar_index.html.haml index fec3c319..6d18d7c5 100644 --- a/app/views/layouts/_admin_sidebar_index.html.haml +++ b/app/views/layouts/_admin_sidebar_index.html.haml @@ -2,13 +2,13 @@ .btn-group %button{type: 'button', class: 'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'} %span.glyphicon.glyphicon-home - Conferences + All Conferences %span.caret %ul.dropdown-menu{role: 'menu'} %li = link_to(admin_conference_index_path) do - %span.glyphicon.glyphicon-dashboard - All + %span.glyphicon.glyphicon-home + All Conferences - @conferences.each do |conference| %li = link_to(admin_conference_path(conference.short_title)) do