]> source.dussan.org Git - redmine.git/commitdiff
scm: add rev param to "View revisions" (#7984).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Mar 2011 02:39:31 +0000 (02:39 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Mar 2011 02:39:31 +0000 (02:39 +0000)
There are two paths to show specific revision.
* http://www.redmine.org/projects/redmine/repository/revisions/5219/show
* http://www.redmine.org/projects/redmine/repository/show?rev=5219

First link is http://www.redmine.org/projects/redmine/repository/revisions/5219/changes .
But, Second link is http://www.redmine.org/projects/redmine/repository/changes .

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5222 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/show.rhtml

index d51724252696740935ac41784ee4a7d529d76e83..0513bd21682be6995be05de06cb55cc1d9762978 100644 (file)
 |
 <%= link_to l(:label_view_revisions),
                    :action => 'changes',
-                   :path => to_path_param(@path), :id => @project %>
+                   :path   => to_path_param(@path),
+                   :id     => @project,
+                   :rev    => @rev
+                   %>
 <%   end %>
 </p>