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 committed Jan 4, 2011
1 parent 2c95971 commit 7743dc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/tolk/application.html.erb
Expand Up @@ -19,7 +19,7 @@
<body> <body>
<div id="container"> <div id="container">
<div id="head"> <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> </div>
<%= yield %> <%= yield %>
</div> </div>
Expand Down
6 changes: 4 additions & 2 deletions public/tolk/screen.css
Expand Up @@ -79,11 +79,13 @@ div#head span.home {
} }


div#head span.locale { div#head span.locale {
color: #fff;
font-weight: bold;
background: #444; background: #444;
} }


div#head span.locale a {
color: #fff;
}

div#head span:first-child { div#head span:first-child {
padding-left: 12px; padding-left: 12px;
-webkit-border-top-left-radius: 10px; -webkit-border-top-left-radius: 10px;
Expand Down

0 comments on commit 7743dc6

Please sign in to comment.