diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 17fa2ca..0d30d5d 100755
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -94,7 +94,10 @@ class HomeController < ApplicationController
format.js
end
end
+ def language
+ end
def choose_contact_topics
+ authorize! :doadmin, User
t=YAML.load_file("#{::Rails.root.to_s}/config/contact_topic.yml")
unless params[:themen].nil?
t=([t].flatten+params[:themen]).uniq
diff --git a/app/views/themes/blue2/layouts/application.html.erb b/app/views/themes/blue2/layouts/application.html.erb
new file mode 100755
index 0000000..533cfef
--- /dev/null
+++ b/app/views/themes/blue2/layouts/application.html.erb
@@ -0,0 +1,65 @@
+
+
+
+
+ ">
+
+
+
+
+ <%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
+ <%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tags %>
+ <% if content_for?(:header) %>
+ <%= yield :header %>
+ <% else %>
+ Fetsite
+ <% end %>
+
+
+
+
+
+
+
diff --git a/app/views/themes/blue2/layouts/menu.html.erb b/app/views/themes/blue2/layouts/menu.html.erb
new file mode 100644
index 0000000..5f3640b
--- /dev/null
+++ b/app/views/themes/blue2/layouts/menu.html.erb
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+ - <%= link_to I18n.t(:home,:scope=>'home' ), home_index_path %>
+
+ - <%= link_to I18n.t(:news,:scope=>'home' ),rubriken_path %>
+
+ - <%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %>
+ - <%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %>
+<% if can? :index, Gallery %>
+ - <%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %>
+<% end %>
+ - <%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %>
+ - <%= link_to I18n.t("home.search"), search_home_index_path %>
+- <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %>
+ <% if can?(:seeintern, User) %>
+ -
+ <%= link_to 'Intern' , intern_home_index_path %>
+
<% end %>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/routes.rb b/config/routes.rb
index 892b23f..0157db5 100755
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,7 @@
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
resources :home, :only=>[:index] do
end
-
+ get ':locale', constraints: {locale: /en|de/}, action: :language,controller: :home, as: "language"
scope '(:locale)/admin' do
resources :users, :only=>[] do
collection do