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.html.erb @ 1531:ae8145b28b2b

History | View | Annotate | Download (1.38 KB)

1
<% content_for :header_tags do %>
2
  <%= javascript_include_tag 'repository_navigation' %>
3
<% end %>
4

    
5
<%= link_to l(:label_statistics),
6
            {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
7
            :class => 'icon icon-stats' if @repository.supports_all_revisions? %>
8

    
9
<%= link_to_revision_archive(@repository, @rev, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
10

    
11
<%= form_tag({:action => controller.action_name,
12
             :id => @project,
13
             :repository_id => @repository.identifier_param,
14
             :path => to_path_param(@path),
15
             :rev => nil},
16
            {:method => :get, :id => 'revision_selector'}) do -%>
17
  <!-- Branches Dropdown -->
18
  <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
19
    | <%= l(:label_branch) %>: 
20
    <%= select_tag :branch,
21
                   options_for_select([''] + @repository.branches, @rev),
22
                   :id => 'branch' %>
23
  <% end -%>
24

    
25
  <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
26
    | <%= l(:label_tag) %>: 
27
    <%= select_tag :tag,
28
                   options_for_select([''] + @repository.tags, @rev),
29
                   :id => 'tag' %>
30
  <% end -%>
31

    
32
  <% if @repository.supports_all_revisions? %>
33
    | <%= l(:label_revision) %>: 
34
    <%= text_field_tag 'rev', @rev, :size => 8 %>
35
  <% end %>
36
<% end -%>
37

    
38