X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0c79686f3cef86330d0ab6bbef2a9e2275ac93ac..c4abe8eb2826d39f98e898f48659df336438f802:/app/views/diary_entries/show.html.erb
diff --git a/app/views/diary_entries/show.html.erb b/app/views/diary_entries/show.html.erb
index 0216aa447..d3a0f70b2 100644
--- a/app/views/diary_entries/show.html.erb
+++ b/app/views/diary_entries/show.html.erb
@@ -1,16 +1,16 @@
<% content_for :heading do %>
@@ -19,9 +19,9 @@
<%= error_messages_for "diary_comment" %>
- <%= form_for :diary_comment, :url => { :action => "comment" } do |f| %>
+ <%= form_for @entry.comments.new, :url => { :action => "comment" } do |f| %>
<%= richtext_area :diary_comment, :body, :cols => 80, :rows => 15 %>
- <%= submit_tag t(".save_button") %>
+ <%= f.submit %>
<% end %>
<% if @entry.subscribers.exists?(current_user.id) %>
<%= link_to t("javascripts.changesets.show.unsubscribe"), diary_entry_unsubscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %>
@@ -29,7 +29,7 @@
<%= link_to t("javascripts.changesets.show.subscribe"), diary_entry_subscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %>
<% end %>
<% else %>
-
+
<% end %>