From 3c5703cdc6d26d681ca7044ae5c96fc9ea408cd3 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Sat, 17 Aug 2019 18:12:22 +0530 Subject: [PATCH] Add route and sidebar entry for booth type --- app/views/layouts/_admin_sidebar.html.haml | 4 ++++ config/routes.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/app/views/layouts/_admin_sidebar.html.haml b/app/views/layouts/_admin_sidebar.html.haml index 78523bc7..83d06788 100644 --- a/app/views/layouts/_admin_sidebar.html.haml +++ b/app/views/layouts/_admin_sidebar.html.haml @@ -121,6 +121,10 @@ = link_to admin_conference_booths_path(@conference.short_title) do %span.fa.fa-shopping-bag = (t'booth').pluralize.capitalize + %ul + - if can? :update, @conference.program.booth_types.build + %li{class: active_nav_li(admin_conference_program_booth_types_path(@conference))} + = link_to "#{(t'booth').pluralize.capitalize} Types", admin_conference_program_booth_types_path(@conference.short_title) - if can? :update, @conference.email_settings %li{class: active_nav_li(admin_conference_emails_path(@conference.short_title))} = link_to(admin_conference_emails_path(@conference.short_title)) do diff --git a/config/routes.rb b/config/routes.rb index 57bfa630..b93f5dc7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -95,6 +95,7 @@ Osem::Application.routes.draw do end end resources :event_types + resources :booth_types resources :difficulty_levels post 'mass_upload_commercials' => 'commercials#mass_upload' resources :events do