app/views/layouts/admin.html.erb in tkh_admin_panel-0.3.1 vs app/views/layouts/admin.html.erb in tkh_admin_panel-0.3.2

- old
+ new

@@ -1,7 +1,7 @@ <!DOCTYPE html> -<html lang="<%= I18n.locale.to_s || 'en' %>"> +<html lang="<%= I18n.locale.to_s %>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><%= t("admin_panel_for") + ' ' + Setting.first.try(:site_name) %></title> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> @@ -25,14 +25,14 @@ <div class="navbar navbar-fixed-top navbar-inverse"> <div class="navbar-inner"> <div class="container"> <ul class="nav"> <%= content_tag :li, link_to(Setting.first.try(:site_name), root_path) %> - <%= content_tag :li, link_to('blog', blog_path) %> + <%= content_tag :li, link_to(t('blog'), blog_path) %> <li class='dropdown'> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= current_user.email %> <b class="caret"></b></a> <ul class="dropdown-menu"> - <%= content_tag :li, link_to('logout', logout_path) %> + <%= content_tag :li, link_to(t('logout'), logout_path) %> </ul> </li> </ul> </div> </div>