From 17bbe0372a4aaa325f66bbd933d4b9cb2728acf3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 14 Oct 2014 21:04:01 +0300 Subject: [PATCH] Add a link to the conference index in the sidebar --- .../management/_navigation.css.scss | 20 +++++++++++++++++++ app/views/layouts/management.html.slim | 5 ++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/management/_navigation.css.scss b/app/assets/stylesheets/management/_navigation.css.scss index 3236073..5fcbf15 100644 --- a/app/assets/stylesheets/management/_navigation.css.scss +++ b/app/assets/stylesheets/management/_navigation.css.scss @@ -34,6 +34,23 @@ margin-bottom: 0; } + .sidebar { + background: none; + } + + .sidebar li a:hover { + background: none; + color: $link-color; + } + + .sidebar ul li a { + color: $gray; + } + + .sidebar ul li.active a { + color: $link-color; + } + .sidebar .arrow { float: right; } @@ -68,4 +85,7 @@ padding-right: 30px; } } +} +#side-menu { + } \ No newline at end of file diff --git a/app/views/layouts/management.html.slim b/app/views/layouts/management.html.slim index c395da3..4daa68b 100644 --- a/app/views/layouts/management.html.slim +++ b/app/views/layouts/management.html.slim @@ -47,8 +47,11 @@ html ul.nav#side-menu li a.active href="index.html" - i.fa.fa-wrench.fa-fw + i.fa.fa-dashboard.fa-fw | Dashboard + li class="#{controller_name == 'conferences' ? 'active' : nil}" + = link_to management_conferences_path + = fa_icon :group, text: Conference.model_name.human(count: 2).mb_chars.capitalize div.content#page-wrapper == yield