X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ea93ad2f077de1be04a9087c7d20547395fdef9e:/app/views/layouts/site.rhtml..edaddbedaec78a252e988e2271962407e64483fd:/app/views/layouts/site.html.erb?ds=sidebyside diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.html.erb similarity index 77% rename from app/views/layouts/site.rhtml rename to app/views/layouts/site.html.erb index 7cefc59d8..37d2b1962 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.html.erb @@ -1,5 +1,5 @@ - + <%= javascript_include_tag 'prototype' %> <%= javascript_include_tag 'site' %> @@ -9,7 +9,7 @@ <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %> <%= yield :head %> - OpenStreetMap<%= ' | '+ h(@title) if @title %> + <%= t 'layouts.project_name.title' %><%= ' | '+ h(@title) if @title %>
@@ -22,14 +22,18 @@ <% if @user and @user.id %> - <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}) %> | - <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %> + <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}, :title => t('layouts.welcome_user_link_tooltip')) %> | <%= yield :greeting %> - <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> | - <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%> - <% else %> - <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> | - <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %> + <% + inbox_attributes = {} + inbox_attributes[:class] = 'greeting-bar-unread' if @user.new_messages.size > 0 + inbox_attributes[:title] = t 'layouts.inbox_tooltip', :count => @user.new_messages.size + %> + <%= link_to t('layouts.inbox', :count => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, inbox_attributes %> | + <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor', :title => t('layouts.logout_tooltip')}%> + <% else %> + <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor', :title => t('layouts.log_in_tooltip')} %> | + <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor', :title => t('layouts.sign_up_tooltip')} %> <% end %> @@ -65,8 +69,8 @@ @@ -81,8 +85,8 @@

<%= t 'layouts.intro_3', - :ucl => 'UCL VR Centre', - :bytemark => 'bytemark' %> + :ucl => link_to(t('layouts.intro_3_ucl'), "http://www.vr.ucl.ac.uk"), + :bytemark => link_to(t('layouts.intro_3_bytemark'), "http://www.bytemark.co.uk") %>

<% end %> @@ -103,9 +107,9 @@ <% end %>
- <%= t 'layouts.help_wiki' %>
- <%= t 'layouts.news_blog' %>
- <%= t 'layouts.shop' %>
+ <%= t 'layouts.help_wiki' %>
+ <%= t 'layouts.news_blog' %>
+ <%= t 'layouts.shop' %>
<%= yield :left_menu %>