Tidy up changeset comment code

This commit is contained in:
Tom Hughes 2014-10-19 21:31:23 +01:00
parent 14ac1babc2
commit 8598db3233
9 changed files with 41 additions and 33 deletions

View file

@ -1,5 +1,4 @@
comments.each do |comment|
xml.item do
xml.title t("changeset.rss.comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
@ -16,4 +15,4 @@ comments.each do |comment|
xml.pubDate comment.created_at.to_s(:rfc822)
end
end
end

View file

@ -9,6 +9,6 @@ xml.rss("version" => "2.0",
xml.link url_for(:controller => "site", :action => "index", :only_path => false)
xml << render(:partial => "comments", :object => @comments)
end
end
end

View file

@ -1,6 +1,5 @@
<p><%= t 'notifier.changeset_comment_notification.greeting' %></p>
<p>
<% if @owner %>
<%= t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => @commenter, :time => @time %>
@ -14,7 +13,6 @@
<% end %>
</p>
==
<%= @comment.to_html %>
==