]> git.openstreetmap.org Git - rails.git/commitdiff
Hook up 'Learn More' and 'Sign Up' buttons
authorAaron Lidman <aaronlidman@gmail.com>
Wed, 6 Nov 2013 18:24:27 +0000 (10:24 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Wed, 6 Nov 2013 18:24:34 +0000 (10:24 -0800)
app/views/site/index.html.erb
config/locales/en.yml

index be0acc3967be4af7e0fe858bbb468fba9f68f5f2..8ec1cad1ffb7feccc655a6bf48ec5b4e6b680a6d 100644 (file)
@@ -5,10 +5,12 @@
 
 <p class="inner12 large-text"><%= t 'layouts.intro_text' %></p>
 
-<div style="text-align: center;">
-  <a class="button" href="">Learn More</a>
-  <a class="button" href="">Sign Up</a>
-</div>
+<% if !@user %>
+  <div style="text-align: center;">
+    <a class="button" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
+    <a class="button" href="<%= user_new_path %>"><%= t('layouts.sign_up') %></a>
+  </div>
+<% end %>
 
 <div class='footer'>
   <a title="<%= t('layouts.make_a_donation.title') %>" href="http://donate.openstreetmap.org/" class="donate">
index 56890371c601d2fec8450c10633264cc168dbf7b..6f6c9e5a63204424dd54e54aa47112a37da71d82 100644 (file)
@@ -1018,7 +1018,7 @@ en:
     make_a_donation:
       title: Support OpenStreetMap with a monetary donation
       text: Make a Donation
-
+    learn_more: "Learn More"
   license_page:
     foreign:
       title: About this translation