From aa1ff51b584e0550e421b4cd3a8731af4734cbb1 Mon Sep 17 00:00:00 2001 From: raluka Date: Mon, 24 Aug 2015 17:17:29 +0200 Subject: [PATCH] small changes --- app/views/layouts/_navigation.html.haml | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_navigation.html.haml b/app/views/layouts/_navigation.html.haml index 66b4822c..543c7a8f 100644 --- a/app/views/layouts/_navigation.html.haml +++ b/app/views/layouts/_navigation.html.haml @@ -25,7 +25,7 @@ %b.caret %ul.dropdown-menu = render 'layouts/user_menu' - - if can? :manage, Conference + - if can? :manage, Comment %ul.nav.navbar-nav.navbar-right %li.dropdown %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#", id: "unread-comments-preview"} diff --git a/config/routes.rb b/config/routes.rb index f7d30750..05766f76 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,7 +15,7 @@ Osem::Application.routes.draw do namespace :admin do resources :users resources :people - resources :comments + resources :comments, only: [:index] resources :conference do member do get :roles