Skip to content

Commit

Permalink
Link to tolk_locale_path from div#head>span.locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Quorning authored and thomasdarde committed May 16, 2012
1 parent fa0dce8 commit 2451ebe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
* Tolk 1.3.0 [not yet released]
* Improved header (bquorning)

* Tolk 1.2.0 [May 16th, 2012]
* Adding search within key (ZenCocoon)
* Update for Rails 3.2.3 whitelist attributes compatibility
Expand Down
6 changes: 4 additions & 2 deletions app/assets/stylesheets/tolk/screen.css
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/tolk/application.html.erb
Expand Up @@ -13,7 +13,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", root_path %></span><% if @locale.present? %><span class="locale"><%= link_to @locale.language_name, locale_path(@locale) %></span><% end %></h1>
</div>
<%= yield %>
</div>
Expand Down

0 comments on commit 2451ebe

Please sign in to comment.