app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.4 vs app/views/layouts/admin.html.erb in tkh_admin_panel-0.0.5
- old
+ new
@@ -21,11 +21,10 @@
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
- <p><b><%= I18n.locale == :en ? link_to('switch to Spanish', locale: :es) : link_to('switch to English', locale: :en) %></b></p>
<h1>Admin Panel<%= " for #{SETTINGS['site_name']}" if defined?(SETTINGS) && SETTINGS['site_name'] %></h1>
<% flash.each do |name, msg| %>
<div class="alert alert-<%= name == :notice ? "success" : "error" %>">
<a class="close" data-dismiss="alert">×</a>
@@ -38,9 +37,10 @@
<div class="row-fluid">
<div id="main-content" class="span9">
<%= yield %>
</div>
<div id="sidebar" class="span3">
+ <%= render 'shared/language_switcher' %>
<%= yield :admin_sidebar %>
</div>
</div><!--/row-->
</div> <!-- /container -->