2011-03-31 00:10:23 +01:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%title= t("layout.global_header")
|
|
|
|
= 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
|
|
|
|
%a{:href => "/"}= t("layout.global_header")
|
|
|
|
#user-navigation
|
|
|
|
%ul.wat-cf
|
2011-10-20 15:05:06 +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
|
|
|
|
%li{:class => controller.controller_path == 'users' ? 'active' : '' }
|
2011-03-31 02:25:33 +01:00
|
|
|
%a{:href => users_path}= t("layout.menu.users")
|
2011-10-16 21:39:45 +01:00
|
|
|
%li{:class => controller.controller_path == 'groups' ? 'active' : '' }
|
|
|
|
%a{:href => groups_path}= t("layout.menu.groups")
|
2011-03-31 00:10:23 +01:00
|
|
|
%li{:class => controller.controller_path == 'platforms' ? 'active' : '' }
|
2011-03-31 02:25:33 +01:00
|
|
|
%a{:href => platforms_path}= t("layout.menu.platforms")
|
2011-10-14 07:35:25 +01:00
|
|
|
%li{:class => controller.controller_path == 'downloads' ? 'active' : '' }
|
|
|
|
%a{:href => downloads_path}= t("layout.menu.downloads")
|
2011-10-14 21:45:58 +01:00
|
|
|
%li{:class => controller.controller_path == 'event_logs' ? 'active' : '' }
|
|
|
|
%a{:href => event_logs_path}= t("layout.menu.event_logs")
|
2011-10-19 21:58:31 +01:00
|
|
|
%li{:class => controller.controller_path == 'categories' ? 'active' : '' }
|
|
|
|
%a{:href => categories_path}= t("layout.menu.categories")
|
2011-03-31 00:10:23 +01:00
|
|
|
#wrapper.wat-cf
|
|
|
|
= render :partial => "layouts/flashes"
|
|
|
|
#main
|
|
|
|
= yield
|
|
|
|
#footer
|
|
|
|
.block
|
2011-10-14 07:35:25 +01:00
|
|
|
|
2011-03-31 00:10:23 +01:00
|
|
|
#sidebar
|
|
|
|
= yield :sidebar
|
|
|
|
|