Mercurial > hg > soundsoftware-site
diff app/views/repositories/_navigation.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | c6c2cbd0afee |
children | bb32da3bea34 261b3d9a4903 |
line wrap: on
line diff
--- a/app/views/repositories/_navigation.html.erb Wed Jun 27 14:54:18 2012 +0100 +++ b/app/views/repositories/_navigation.html.erb Mon Jan 07 12:01:42 2013 +0000 @@ -2,20 +2,33 @@ <%= javascript_include_tag 'repository_navigation' %> <% end %> -<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> +<%= link_to l(:label_statistics), + {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param}, + :class => 'icon icon-stats' if @repository.supports_all_revisions? %> -<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> +<%= form_tag({:action => controller.action_name, + :id => @project, + :repository_id => @repository.identifier_param, + :path => to_path_param(@path), + :rev => nil}, + {:method => :get, :id => 'revision_selector'}) do -%> <!-- Branches Dropdown --> <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> | <%= l(:label_branch) %>: - <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %> + <%= select_tag :branch, + options_for_select([''] + @repository.branches, @rev), + :id => 'branch' %> <% end -%> <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> | <%= l(:label_tag) %>: - <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> + <%= select_tag :tag, + options_for_select([''] + @repository.tags, @rev), + :id => 'tag' %> <% end -%> - | <%= l(:label_revision) %>: - <%= text_field_tag 'rev', @rev, :size => 8 %> + <% if @repository.supports_all_revisions? %> + | <%= l(:label_revision) %>: + <%= text_field_tag 'rev', @rev, :size => 8 %> + <% end %> <% end -%>