app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.7 vs app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.8
- old
+ new
@@ -22,10 +22,10 @@
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<%= render 'shared/login_info' %>
- <h1>Admin Panel<%= " for #{SETTINGS['site_name']}" if defined?(SETTINGS) && SETTINGS['site_name'] %></h1>
+ <h1>Admin Panel<%= " for #{link_to(SETTINGS['site_name'], root_path) if defined?(SETTINGS) && SETTINGS['site_name']}".html_safe %></h1>
<% flash.each do |name, msg| %>
<div class="alert alert-<%= name == :notice ? "success" : "error" %>">
<a class="close" data-dismiss="alert">×</a>
<%= msg %>