From 7b3d3243b8f0a819f34d61daa50b52d352fd98a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Tue, 6 Oct 2015 14:32:01 +0200 Subject: [PATCH] adds management layout --- app/controllers/management/base_controller.rb | 2 +- app/views/layouts/management.html.erb | 64 +++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 app/views/layouts/management.html.erb diff --git a/app/controllers/management/base_controller.rb b/app/controllers/management/base_controller.rb index 2ca542954..49a9eaf5d 100644 --- a/app/controllers/management/base_controller.rb +++ b/app/controllers/management/base_controller.rb @@ -1,5 +1,5 @@ class Management::BaseController < ActionController::Base - layout 'admin' + layout 'management' before_action :verify_manager diff --git a/app/views/layouts/management.html.erb b/app/views/layouts/management.html.erb new file mode 100644 index 000000000..431ee27c0 --- /dev/null +++ b/app/views/layouts/management.html.erb @@ -0,0 +1,64 @@ + + + + + + + + <%= content_for?(:title) ? yield(:title) : "Admin" %> + <%= stylesheet_link_tag "application" %> + <%= javascript_include_tag "vendor/modernizr" %> + <%= javascript_include_tag "application", 'data-turbolinks-track' => true %> + <%= content_for :head %> + <%= csrf_meta_tags %> + <%= favicon_link_tag "favicon.ico" %> + + + +
+ + +
+ +
+
+
+ +
+ <%= render "/management/menu" %> +
+ +
+ <% if notice %> +
+ ">× + <%= notice %> +
+ <% end %> + + <% if alert %> +
+ ">× + <%= alert %> +
+ <% end %> + + <%= yield %> +
+
+ +