From 9724633c23082ccfbe1390329822df442f5c3b38 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 20 Apr 2015 19:52:29 +0300 Subject: [PATCH] Add mockup menu items --- app/views/layouts/management/_navigation.html.slim | 13 +++++++++++++ config/locales/bg.yml | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/app/views/layouts/management/_navigation.html.slim b/app/views/layouts/management/_navigation.html.slim index 45dba67..8f37787 100644 --- a/app/views/layouts/management/_navigation.html.slim +++ b/app/views/layouts/management/_navigation.html.slim @@ -19,6 +19,19 @@ nav.navbar.navbar-static-top.navbar-inverse role="navigation" - Conference.all.each do |conference| li = link_to conference.title, management_conference_path(conference) + li class="#{'active' if controller_name == 'sessions'}" + = link_to management_users_path do + => icon 'user', User.model_name.human(count: 2).mb_chars.capitalize, class: 'fa-fw' + - if @conference.present? + li class="#{'active' if controller_name == 'events'}" + = link_to management_conference_events_path(@conference) do + => icon 'file-text', Event.model_name.human(count: 2).mb_chars.capitalize, class: 'fa-fw' + li class="#{'active' if controller_name == 'sponsorship_offers'}" + = link_to '#' do + => icon 'money', t('activerecord.models.sponsorship_offer', count: 2).mb_chars.capitalize, class: 'fa-fw' + li class="#{'active' if controller_name == 'volunteerships'}" + = link_to '#' do + => icon 'hand-o-up', t('activerecord.models.volunteership', count: 2).mb_chars.capitalize, class: 'fa-fw' ul.nav.navbar-nav.navbar-right li.dropdown = link_to '#', class: 'dropdown-toggle', data: {toggle: 'dropdown'} do diff --git a/config/locales/bg.yml b/config/locales/bg.yml index eda1e74..ed37f15 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -81,6 +81,12 @@ bg: conference: one: конференция other: конференции + sponsorship_offer: + one: спонсор + other: спонсори + volunteership: + one: доброволец + other: доброволци attributes: hall: name: Име