app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.8 vs app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.9

- old
+ new

@@ -1,11 +1,15 @@ <!DOCTYPE html> <html lang="<%= I18n.locale.to_s || 'en' %>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Admin Panel<%= " for #{SETTINGS['site_name']}" if defined?(SETTINGS) && SETTINGS['site_name'] %></title> + <title>Admin Panel + <% if defined?(SETTINGS) && SETTINGS['site_name'] %> + <%= " for #{link_to(SETTINGS['site_name'], root_path) }".html_safe %> + <% end %> + </title> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script> <![endif]--> <!-- Le styles --> @@ -22,10 +26,14 @@ <div class="container-fluid"> <div class="row-fluid"> <div class="span12"> <%= render 'shared/login_info' %> - <h1>Admin Panel<%= " for #{link_to(SETTINGS['site_name'], root_path) if defined?(SETTINGS) && SETTINGS['site_name']}".html_safe %></h1> + <h1>Admin Panel + <% if defined?(SETTINGS) && SETTINGS['site_name'] %> + <%= " for #{link_to(SETTINGS['site_name'], root_path) }".html_safe %> + <% end %> + </h1> <% flash.each do |name, msg| %> <div class="alert alert-<%= name == :notice ? "success" : "error" %>"> <a class="close" data-dismiss="alert">×</a> <%= msg %>