From dd231a335758873dcd9024db7618837094fcc0a5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 6 Jul 2018 16:52:48 -0400 Subject: Added page titles refs #4 --- app/views/layouts/admin.html.haml | 2 +- app/views/layouts/application.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/layouts') diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index cb48c50..bc07335 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -1,7 +1,7 @@ !!! 5 %html %head - %title Thoughts - Admin + %title= content_for?(:title) ? "Thoughts - Admin - #{yield(:title)}" : "Thoughts - Admin" = csrf_meta_tags = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 2d264a7..8cd06b0 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,7 +1,7 @@ !!! 5 %html %head - %title Thoughts + %title= content_for?(:title) ? "Thoughts - #{yield(:title)}" : "Thoughts" = csrf_meta_tags = stylesheet_link_tag 'main', media: 'all', 'data-turbolinks-track': 'reload' = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' -- cgit 1.4.1