diff options
Diffstat (limited to 'app/views/repositories/show.html.erb')
-rw-r--r-- | app/views/repositories/show.html.erb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index fc148e8d1..ca64c73f3 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -25,7 +25,7 @@ sep = '' %> <% if @repository.supports_all_revisions? && @path.blank? %> -<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> +<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %> <% sep = '|' %> <% end %> <% @@ -38,6 +38,7 @@ :action => 'changes', :path => to_path_param(@path), :id => @project, + :repository_id => @repository.identifier_param, :rev => @rev %> <% end %> @@ -52,11 +53,22 @@ <% end %> <% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> + <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :repository_id => @repository.identifier_param, :key => User.current.rss_key} %> <% end %> <% end %> <% end %> +<% if @repositories.size > 1 %> + <% content_for :sidebar do %> + <h3><%= l(:label_repository_plural) %></h3> + <%= @repositories.sort.collect {|repo| + link_to h(repo.name), + {:controller => 'repositories', :action => 'show', :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, + :class => 'repository' + (repo == @repository ? ' selected' : '') + }.join('<br />').html_safe %></p> + <% end %> +<% end %> + <% content_for :header_tags do %> <%= stylesheet_link_tag "scm" %> <% end %> |