From 974fcaf3d0cd7b5e73b726a8725f6f26892f97f6 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sat, 13 Sep 2014 18:14:42 +0200 Subject: [PATCH] =?UTF-8?q?Title=20f=C3=BCr=20rubrik?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/application.html.erb | 6 +++++- app/views/rubriken/index.html.erb | 3 +++ app/views/rubriken/show.html.erb | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index dafbaf5..9b60923 100755 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,7 +5,7 @@ - Fetsite + <%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %> <%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %> @@ -13,7 +13,11 @@ <% theme_stylesheet_link_tag "mod", :media=>"all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> +<% if content_for?(:header) %> <%= yield :header %> +<% else %> +Fetsite +<% end %> diff --git a/app/views/rubriken/index.html.erb b/app/views/rubriken/index.html.erb index 0039867..5b471dc 100755 --- a/app/views/rubriken/index.html.erb +++ b/app/views/rubriken/index.html.erb @@ -1,3 +1,6 @@ +<%= content_for :header do %> +Fetsite - <%= I18n.t('home.news') %> +<% end %> <%= render 'tabs' %>

<%= notice %>

diff --git a/app/views/rubriken/show.html.erb b/app/views/rubriken/show.html.erb index be7f89d..a16df8d 100755 --- a/app/views/rubriken/show.html.erb +++ b/app/views/rubriken/show.html.erb @@ -1,3 +1,6 @@ +<%= content_for :header do %> +Fetsite - <%= @rubrik.name %> +<% end %> <%= render 'tabs' %>

<%= notice %>

@@ -24,6 +27,7 @@ <%= render neuigkeit, wrap_in: "li" %> + <% end %>