comparison app/views/repositories/_navigation.rhtml @ 897:b293eb7e5c94 bug_371

Use revision string instead of changeset object for archive link (works for branch and tag as well as changeset)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 02 Feb 2012 15:02:13 +0000
parents 496b3cfa2f36
children
comparison
equal deleted inserted replaced
847:83740cd6705e 897:b293eb7e5c94
1 <% content_for :header_tags do %> 1 <% content_for :header_tags do %>
2 <%= javascript_include_tag 'repository_navigation' %> 2 <%= javascript_include_tag 'repository_navigation' %>
3 <% end %> 3 <% end %>
4 4
5 <%= link_to_revision_archive(@repository, @changeset, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %> 5 <%= link_to_revision_archive(@repository, @rev, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
6 6
7 <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%> 7 <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
8 <!-- Branches Dropdown --> 8 <!-- Branches Dropdown -->
9 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> 9 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
10 | <%= l(:label_branch) %>: 10 | <%= l(:label_branch) %>: