2011-03-31 00:10:23 +01:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
2011-11-01 20:18:22 +00:00
|
|
|
%title= choose_title
|
2011-03-31 00:10:23 +01:00
|
|
|
= render :partial => "layouts/stylesheets"
|
|
|
|
= render :partial => "layouts/javascripts"
|
|
|
|
= csrf_meta_tag
|
|
|
|
%body
|
2011-03-09 13:13:36 +00:00
|
|
|
#container
|
2011-03-31 00:10:23 +01:00
|
|
|
#header
|
|
|
|
%h1
|
2011-11-01 21:09:10 +00:00
|
|
|
%a{:href => "/"}= choose_title
|
2011-03-31 00:10:23 +01:00
|
|
|
#user-navigation
|
|
|
|
%ul.wat-cf
|
2011-10-27 20:23:31 +01:00
|
|
|
%li= link_to current_user.uname, edit_user_registration_path
|
2011-10-11 21:56:51 +01:00
|
|
|
%li= link_to t('layout.logout'), destroy_user_session_path, :method => :delete, :class => "logout"
|
2011-03-31 00:10:23 +01:00
|
|
|
#main-navigation
|
|
|
|
%ul.wat-cf
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, User
|
2011-10-26 01:36:30 +01:00
|
|
|
%li{:class => controller.controller_path == 'users' ? 'active' : '' }
|
|
|
|
%a{:href => users_path}= t("layout.menu.users")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, Platform
|
2011-10-26 01:36:30 +01:00
|
|
|
%li{:class => controller.controller_path == 'platforms' ? 'active' : '' }
|
|
|
|
%a{:href => platforms_path}= t("layout.menu.platforms")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, Project
|
2011-10-28 21:28:31 +01:00
|
|
|
%li{:class => controller.controller_path == 'projects' ? 'active' : '' }
|
|
|
|
%a{:href => projects_path}= t("layout.menu.projects")
|
2011-12-05 12:32:18 +00:00
|
|
|
-if can? :index, Group
|
|
|
|
%li{:class => controller.controller_path == 'groups' ? 'active' : '' }
|
|
|
|
%a{:href => groups_path}= t("layout.menu.groups")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, Download
|
2011-10-26 01:36:30 +01:00
|
|
|
%li{:class => controller.controller_path == 'downloads' ? 'active' : '' }
|
|
|
|
%a{:href => downloads_path}= t("layout.menu.downloads")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, EventLog
|
2011-10-26 01:36:30 +01:00
|
|
|
%li{:class => controller.controller_path == 'event_logs' ? 'active' : '' }
|
|
|
|
%a{:href => event_logs_path}= t("layout.menu.event_logs")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :index, BuildList
|
2011-10-29 11:56:26 +01:00
|
|
|
%li{:class => controller.controller_path == 'build_lists' ? 'active' : '' }
|
2011-12-21 01:30:34 +00:00
|
|
|
%a{:href => build_lists_path}= t("layout.menu.build_lists")
|
2011-11-24 21:46:19 +00:00
|
|
|
-if can? :platforms, Category
|
2011-10-26 01:36:30 +01:00
|
|
|
%li{:class => controller.controller_path == 'categories' ? 'active' : '' }
|
2011-11-01 20:53:25 +00:00
|
|
|
%a{:href => catalogs_path}= t("layout.menu.categories")
|
2011-11-19 11:41:11 +00:00
|
|
|
-if can? :read, current_user.personal_repository
|
2011-10-27 14:04:03 +01:00
|
|
|
%li{:class => controller.controller_path == 'personal_repositories' ? 'active' : '' }
|
2011-10-31 16:25:16 +00:00
|
|
|
%a{:href => personal_repository_path( current_user.personal_repository.id )}= t("layout.menu.personal_repository")
|
2011-11-19 11:41:11 +00:00
|
|
|
- if can? :index, AutoBuildList
|
2011-10-31 16:25:16 +00:00
|
|
|
%li{:class => controller.controller_path == 'auto_build_lists' ? 'active' : '' }
|
|
|
|
%a{:href => auto_build_lists_path}= t("layout.menu.auto_build_lists")
|
2011-03-31 00:10:23 +01:00
|
|
|
#wrapper.wat-cf
|
|
|
|
= render :partial => "layouts/flashes"
|
|
|
|
#main
|
|
|
|
= yield
|
|
|
|
#footer
|
|
|
|
.block
|
2012-01-16 21:48:38 +00:00
|
|
|
= yield :footer
|
2011-10-14 07:35:25 +01:00
|
|
|
|
2011-03-31 00:10:23 +01:00
|
|
|
#sidebar
|
|
|
|
= yield :sidebar
|
|
|
|
|