annotate app/views/repositories/_navigation.rhtml @ 740:8873bc7c1af5 feature_318

Hack in simplistic download link
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 04 Nov 2011 17:56:58 +0000
parents 513646585e45
children 496b3cfa2f36
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@0 5 <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
Chris@0 6
chris@740 7 | <a href="/hg/<%= h(@project.identifier) %>/archive/<%=
chris@740 8 rev_text = @changeset.nil? ? @rev : format_revision(@changeset);
chris@740 9 rev_text.blank? ? "tip" : rev_text
chris@740 10 %>.zip">Download this revision</a>
chris@740 11
Chris@0 12 <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
Chris@0 13 <!-- Branches Dropdown -->
Chris@0 14 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
Chris@0 15 | <%= l(:label_branch) %>:
Chris@0 16 <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %>
Chris@0 17 <% end -%>
Chris@0 18
Chris@0 19 <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
Chris@0 20 | <%= l(:label_tag) %>:
Chris@0 21 <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %>
Chris@0 22 <% end -%>
Chris@0 23
Chris@0 24 | <%= l(:label_revision) %>:
Chris@0 25 <%= text_field_tag 'rev', @rev, :size => 8 %>
Chris@0 26 <% end -%>