Mercurial > hg > soundsoftware-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
740:8873bc7c1af5 | 741:496b3cfa2f36 |
---|---|
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 l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> | 5 <%= link_to_revision_archive(@repository, @changeset, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %> |
6 | |
7 | <a href="/hg/<%= h(@project.identifier) %>/archive/<%= | |
8 rev_text = @changeset.nil? ? @rev : format_revision(@changeset); | |
9 rev_text.blank? ? "tip" : rev_text | |
10 %>.zip">Download this revision</a> | |
11 | 6 |
12 <% 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 -%> |
13 <!-- Branches Dropdown --> | 8 <!-- Branches Dropdown --> |
14 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> | 9 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%> |
15 | <%= l(:label_branch) %>: | 10 | <%= l(:label_branch) %>: |
22 <% end -%> | 17 <% end -%> |
23 | 18 |
24 | <%= l(:label_revision) %>: | 19 | <%= l(:label_revision) %>: |
25 <%= text_field_tag 'rev', @rev, :size => 8 %> | 20 <%= text_field_tag 'rev', @rev, :size => 8 %> |
26 <% end -%> | 21 <% end -%> |
22 | |
23 |