]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/903'
authorTom Hughes <tom@compton.nu>
Thu, 27 Aug 2015 20:44:44 +0000 (21:44 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 27 Aug 2015 20:44:44 +0000 (21:44 +0100)
app/views/diary_entry/edit.html.erb
config/locales/en.yml

index 4021eaa4d30bf515cd14f2353dc8f88d512b9f75..f29dc30ffec2edce53a397ad78d0a51237c712bb 100644 (file)
       </div>
     </fieldset>
 
-    <%= submit_tag t('diary_entry.edit.save_button') %>
-    <%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>
+    <% if action_name == 'new' %>
+      <%= submit_tag t('diary_entry.new.publish_button') %>
+    <% else %>
+      <%= submit_tag t('diary_entry.edit.save_button') %>
+    <% end %>
   </div>
 <% end %>
index 63f0c0e783ccbb6f3048d6de64592ac00c803fdd..07647af22bc36c59caee38e29bfd189aef9d6871 100644 (file)
@@ -250,6 +250,7 @@ en:
   diary_entry:
     new:
       title: New Diary Entry
+      publish_button: "Publish"
     list:
       title: "Users' diaries"
       title_friends: "Friends' diaries"