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 @ 1591:63650ae64bf2

History | View | Annotate | Download (1.38 KB)

1 0:513646585e45 Chris
<% content_for :header_tags do %>
2
  <%= javascript_include_tag 'repository_navigation' %>
3
<% end %>
4
5 1115:433d4f72a19b Chris
<%= 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 908:c6c2cbd0afee Chris
9 897:b293eb7e5c94 chris
<%= link_to_revision_archive(@repository, @rev, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
10 0:513646585e45 Chris
11 1115:433d4f72a19b Chris
<%= 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 0:513646585e45 Chris
  <!-- Branches Dropdown -->
18
  <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
19
    | <%= l(:label_branch) %>:
20 1115:433d4f72a19b Chris
    <%= select_tag :branch,
21
                   options_for_select([''] + @repository.branches, @rev),
22
                   :id => 'branch' %>
23 0:513646585e45 Chris
  <% end -%>
24
25
  <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
26
    | <%= l(:label_tag) %>:
27 1115:433d4f72a19b Chris
    <%= select_tag :tag,
28
                   options_for_select([''] + @repository.tags, @rev),
29
                   :id => 'tag' %>
30 0:513646585e45 Chris
  <% end -%>
31
32 1115:433d4f72a19b Chris
  <% if @repository.supports_all_revisions? %>
33
    | <%= l(:label_revision) %>:
34
    <%= text_field_tag 'rev', @rev, :size => 8 %>
35 1464:261b3d9a4903 Chris
  <% end %>
36 0:513646585e45 Chris
<% end -%>
37 741:496b3cfa2f36 chris