<%= @notice || flash[:notice] %>
+ <% if flash[:error] %>
+ <%= flash[:error] %>
+ <% end %>
+ <% if flash[:warning] %>
+ <%= flash[:warning] %>
+ <% end %>
+ <% if flash[:notice] %>
+ <%= flash[:notice] %>
<% end %>
<%= yield %>
@@ -22,7 +33,8 @@
<% 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}, :title => t('layouts.welcome_user_link_tooltip')) %> |
+ <%= 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')) %>
+ <%= link_to t('layouts.welcome_user_link_tooltip'), {:controller => 'user', :action => 'view', :display_name => @user.display_name} %> |
<%= yield :greeting %>
<%
inbox_attributes = {}
@@ -47,14 +59,14 @@
traceclass = ''
viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
- historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list_bbox'
+ historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list'
exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
traceclass = 'active' if params['controller'] == 'trace'
diaryclass = 'active' if params['controller'] == 'diary_entry'
%>
- <%= t 'layouts.intro_2' %>. + <%= t 'layouts.intro_2' %>
<%= t 'layouts.intro_3', @@ -93,11 +105,12 @@ <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
- <%= t 'layouts.offline' %>
+ <%= t 'layouts.osm_offline' %>
<% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
- <%= t 'layouts.read_only' %>
+ <%= t 'layouts.osm_read_only' %>
+
<% end %>
<% if false %>
@@ -108,24 +121,28 @@
-
- <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm'), :title => t('layouts.sotm'), :border => "0"), "http://www.stateofthemap.org/register" %>
-
-
<%= yield :optionals %>