]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Add 'x' to close welcome box; remember preference
[rails.git] / app / views / layouts / map.html.erb
index 2170705b00b20c7ff6a0186416172d5b39c18c14..ed7fe6837a4725e0d9ab708adfa370e89790958a 100644 (file)
       <p class="error"><%= t 'layouts.osm_read_only' %></p>
     <% end %>
 
+    <div id="flash">
+      <%= render :partial => "layouts/flash" %>
+    </div>
+
     <div id="browse_status"></div>
 
     <div id="sidebar_loader" style="display: none;">
     </div>
 
     <div id="sidebar_content">
-      <%= render :partial => "layouts/flash" %>
       <%= yield %>
     </div>
+
+    <% unless @user %>
+      <div class="welcome">
+        <h2><a><span class="icon close"></span></a><%= t 'layouts.intro_header' %></h2>
+        <p><%= t 'layouts.intro_text' %></p>
+        <a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
+        <a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.start_mapping') %></a>
+      </div>
+    <% end %>
   </div>
 
   <noscript>