diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..a16c90f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,5 @@ module ApplicationHelper + def title (page_title) + content_for(:title) { page_title } + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index dfd4e62..4c63599 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - AdnRepostmentions + <%= content_for?(:title) ? yield(:title) : "RepostMentions" %> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> diff --git a/app/views/reposts/index.html.erb b/app/views/reposts/index.html.erb index 65490cd..f5c87dc 100644 --- a/app/views/reposts/index.html.erb +++ b/app/views/reposts/index.html.erb @@ -1,3 +1,5 @@ +<% title "@Karlsruher" %> +

@Karlsruher