annotate app/views/repositories/_navigation.rhtml @ 741:496b3cfa2f36
feature_318
Finish adding download link
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Mon, 07 Nov 2011 17:29:43 +0000 |
parents |
8873bc7c1af5 |
children |
b293eb7e5c94 |
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@741
|
5 <%= link_to_revision_archive(@repository, @changeset, @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
|