Permalink
Browse files

Link to tolk_locale_path from div#head>span.locale

  • Loading branch information...
1 parent 2c95971 commit 7743dc610ee9991746302e6a591b74c05dcff326 Benjamin Quorning committed Jan 4, 2011
Showing with 5 additions and 3 deletions.
  1. +1 −1 app/views/layouts/tolk/application.html.erb
  2. +4 −2 public/tolk/screen.css
View
2 app/views/layouts/tolk/application.html.erb
@@ -19,7 +19,7 @@
<body>
<div id="container">
<div id="head">
- <h1><span class="home"><%= link_to "Tolk", tolk_root_path %></span><% if @locale.present? %><span class="locale"><%= @locale.language_name %></span><% end %></h1>
+ <h1><span class="home"><%= link_to "Tolk", tolk_root_path %></span><% if @locale.present? %><span class="locale"><%= link_to @locale.language_name, tolk_locale_path(@locale) %></span><% end %></h1>
</div>
<%= yield %>
</div>
View
6 public/tolk/screen.css
@@ -79,11 +79,13 @@ div#head span.home {
}
div#head span.locale {
- color: #fff;
- font-weight: bold;
background: #444;
}
+div#head span.locale a {
+ color: #fff;
+}
+
div#head span:first-child {
padding-left: 12px;
-webkit-border-top-left-radius: 10px;

0 comments on commit 7743dc6

Please sign in to comment.