]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/edit.html.erb
Merge remote-tracking branch 'openstreetmap/pull/1154'
[rails.git] / app / views / diary_entry / edit.html.erb
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 %>