annotate 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 |
|
rev |
line source |
Chris@0
|
1 <% content_for :header_tags do %>
|
Chris@0
|
2 <%= javascript_include_tag 'repository_navigation' %>
|
Chris@0
|
3 <% end %>
|
Chris@0
|
4
|
chris@897
|
5 <%= link_to_revision_archive(@repository, @rev, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
|
chris@740
|
6
|
Chris@0
|
7 <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
|
Chris@0
|
8 <!-- Branches Dropdown -->
|
Chris@0
|
9 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
Chris@0
|
10 | <%= l(:label_branch) %>:
|
Chris@0
|
11 <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %>
|
Chris@0
|
12 <% end -%>
|
Chris@0
|
13
|
Chris@0
|
14 <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
Chris@0
|
15 | <%= l(:label_tag) %>:
|
Chris@0
|
16 <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %>
|
Chris@0
|
17 <% end -%>
|
Chris@0
|
18
|
Chris@0
|
19 | <%= l(:label_revision) %>:
|
Chris@0
|
20 <%= text_field_tag 'rev', @rev, :size => 8 %>
|
Chris@0
|
21 <% end -%>
|
chris@741
|
22
|
chris@741
|
23
|