Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/app/views/repositories/_navigation.rhtml Fri Nov 04 17:56:58 2011 +0000 +++ b/app/views/repositories/_navigation.rhtml Mon Nov 07 17:29:43 2011 +0000 @@ -2,12 +2,7 @@ <%= javascript_include_tag 'repository_navigation' %> <% end %> -<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> - -| <a href="/hg/<%= h(@project.identifier) %>/archive/<%= - rev_text = @changeset.nil? ? @rev : format_revision(@changeset); - rev_text.blank? ? "tip" : rev_text -%>.zip">Download this revision</a> +<%= link_to_revision_archive(@repository, @changeset, @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 --> @@ -24,3 +19,5 @@ | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> <% end -%> + +