Skip to content

Commit

Permalink
[webui] Display link to source rev files for submits of older revisions
Browse files Browse the repository at this point in the history
Fixes bnc#683394
  • Loading branch information
saschpe committed Nov 10, 2011
1 parent 68e19f5 commit 077d131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webui/app/views/request/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
<%= link_to(src_proj, :controller => :project, :action => :show, :project => ae.source.project) %> /
<% if Package.exists?(ae.source.project, ae.source.package) %>
<%= link_to(src_pack, :controller => :package, :action => :show, :project => ae.source.project, :package => ae.source.package) %>
<% if ae.source.has_attribute?(:rev) && ae.source.rev != Package.current_rev(ae.source.project, ae.source.package) %>
<%= link_to("(r#{ae.source.rev})", :controller => :package, :action => :files, :project => ae.source.project, :package => ae.source.package, :rev => ae.source.rev) %>
<% end %>
<% else %>
<%= src_pack %>
<% end %>
Expand Down

0 comments on commit 077d131

Please sign in to comment.