To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.09 KB)

1 0:513646585e45 Chris
<% content_for :header_tags do %>
2
  <%= javascript_include_tag 'repository_navigation' %>
3
<% end %>
4
5
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
6
7 740:8873bc7c1af5 chris
| <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
12 0:513646585e45 Chris
<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
13
  <!-- Branches Dropdown -->
14
  <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
15
    | <%= l(:label_branch) %>:
16
    <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %>
17
  <% end -%>
18
19
  <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
20
    | <%= l(:label_tag) %>:
21
    <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %>
22
  <% end -%>
23
24
  | <%= l(:label_revision) %>:
25
  <%= text_field_tag 'rev', @rev, :size => 8 %>
26
<% end -%>