X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1a49f8eff109f773c79fce48f9ed69ffdd0c10fc..f74c984a49695df755ed853bc42f1da0fca363e6:/app/views/layouts/site.html.erb
diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb
index 4ee763d43..8239c8c2d 100644
--- a/app/views/layouts/site.html.erb
+++ b/app/views/layouts/site.html.erb
@@ -1,154 +1,122 @@
-
-
-
-
- <% if flash[:error] %>
-
<%= flash[:error] %>
- <% end %>
- <% if flash[:warning] %>
-
<%= flash[:warning] %>
- <% end %>
- <% if flash[:notice] %>
-
<%= flash[:notice] %>
- <% end %>
-
- <%= yield %>
-
-
-
-
-
- <%= t 'layouts.project_name.h1' %>
- <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0, :alt => t('layouts.logo.alt_text')), :controller => 'site', :action => 'index') %>
- <%= t('layouts.tag_line') %>
-
+ <%= link_to(image_tag("osm_logo.png",
+ :size => "120x120",
+ :alt => t('layouts.logo.alt_text')),
+ root_path) %>
+ <%= t 'layouts.project_name.h1' %>
+ <%= t('layouts.tag_line') %>
-
+ <%= yield :optionals %>
<% unless @user %>
-
+
<% end %>
-
<% if STATUS == :database_offline or STATUS == :api_offline %>
-
- <%= t 'layouts.osm_offline' %>
+
<% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
-
- <%= t 'layouts.osm_read_only' %>
+
<% end %>
-
- <% if false %>
-
- <%= t 'layouts.donate', :link => "
#{t('layouts.donate_link_text')}" %>
+
+
+
+ <%= h(t('layouts.make_a_donation.text')) %>
+
+
- <% end %>
-
-
+
+
+
+
+
+ <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
+ <% if content_for? :heading %>
+
+ <%= yield :heading %>
+
+ <% end %>
+
+ <%= yield %>
-
- <%= yield :optionals %>
-
-
-
-
+ <% if defined?(PIWIK) -%>
+
+ <% end -%>