Mercurial > hg > soundsoftware-site
view 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 |
line wrap: on
line source
<% content_for :header_tags do %> <%= javascript_include_tag 'repository_navigation' %> <% end %> <%= link_to_revision_archive(@repository, @rev, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %> <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {: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' %> <% end -%> <% if !@repository.tags.nil? && @repository.tags.length > 0 -%> | <%= l(:label_tag) %>: <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %> <% end -%> | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> <% end -%>