From cd84ed18bf41dd5529ebccc86b914fe86ad1d8f9 Mon Sep 17 00:00:00 2001 From: Kemal AKIN Date: Tue, 29 Jan 2019 11:13:36 +0300 Subject: [PATCH] Application title tag improve --- .../app_files/app/views/layouts/hq/application.html.haml.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/app_files/app/views/layouts/hq/application.html.haml.erb b/templates/app_files/app/views/layouts/hq/application.html.haml.erb index de3d56b..0afc20b 100644 --- a/templates/app_files/app/views/layouts/hq/application.html.haml.erb +++ b/templates/app_files/app/views/layouts/hq/application.html.haml.erb @@ -5,10 +5,7 @@ %html.no-js{ lang: I18n.locale } %head %title - - if content_for?(:title) - = "#{yield(:title)} - <%= app_name.capitalize %>" - - else - = '<%= app_name.capitalize %>' + = content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>' %meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' } %meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' } %meta{ name: 'description', content: '<%= app_name.capitalize %>' }