Fix layout links. Refs #2162

This commit is contained in:
Pavel Chipiga 2011-10-31 18:25:16 +02:00
parent fcb9007a47
commit 07c2ab13c2
1 changed files with 4 additions and 4 deletions

View File

@ -45,10 +45,10 @@
%a{:href => roles_path}= t("layout.menu.roles")
-if current_user.can_perform?('personal_repositories', 'show')
%li{:class => controller.controller_path == 'personal_repositories' ? 'active' : '' }
-#%a{:href => personal_repository_path( current_user.personal_repository.id )}= t("layout.menu.personal_repository")
-#if current_user.can_perform?('auto_build_lists', 'index')
%li{:class => controller.controller_path == 'auto_build_lists' ? 'active' : '' }
%a{:href => auto_build_lists_path}= t("layout.menu.auto_build_lists")
%a{:href => personal_repository_path( current_user.personal_repository.id )}= t("layout.menu.personal_repository")
- if current_user.can_perform?('auto_build_lists', 'index')
%li{:class => controller.controller_path == 'auto_build_lists' ? 'active' : '' }
%a{:href => auto_build_lists_path}= t("layout.menu.auto_build_lists")
#wrapper.wat-cf
= render :partial => "layouts/flashes"
#main