Move changeset show action to changesets controller
This commit is contained in:
parent
d23763d6cd
commit
c1b5ae0aa0
13 changed files with 120 additions and 114 deletions
|
@ -2,8 +2,8 @@ comments.each do |comment|
|
|||
xml.item do
|
||||
xml.title t(".comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
|
||||
|
||||
xml.link url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
|
||||
xml.guid url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
|
||||
xml.link changeset_url(comment.changeset, :anchor => "c#{comment.id}")
|
||||
xml.guid changeset_url(comment.changeset, :anchor => "c#{comment.id}")
|
||||
|
||||
xml.description do
|
||||
xml.cdata! render(:partial => "comment", :object => comment, :formats => [:html])
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</p>
|
||||
<p class="details"><%= changeset_details(@changeset) %></p>
|
||||
|
||||
<%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
|
||||
<%= render :partial => "browse/tag_details", :object => @changeset.tags.except("comment") %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
|
@ -25,9 +25,7 @@
|
|||
<% if changeset %>
|
||||
<%= t(".latest_edit_html", :ago => friendly_date_ago(changeset.created_at)) %>
|
||||
<% comment = changeset.tags["comment"].to_s == "" ? t("browse.no_comment") : changeset.tags["comment"] %>
|
||||
<q><%= link_to(comment,
|
||||
{ :controller => "browse", :action => "changeset", :id => changeset.id },
|
||||
{ :title => t("changesets.changeset.view_changeset_details") }) %></q>
|
||||
<q><%= link_to comment, changeset_path(changeset), :title => t("changesets.changeset.view_changeset_details") %></q>
|
||||
<% else %>
|
||||
<%= t "changesets.changeset.no_edits" %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue