summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/_navigation.html.erb
blob: 706f06c800a2df2961eef71d993320f2f683ed57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<% content_for :header_tags do %>
  <%= javascript_include_tag 'repository_navigation' %>
<% end %>

<%= link_to l(:label_statistics),
            {:action => 'stats', :id => @project},
            :class => 'icon icon-stats' %>

<% form_tag({:action => controller.action_name,
             :id => @project,
             :path => to_path_param(@path),
             :rev => ''},
            {:method => :get, :id => 'revision_selector'}) do -%>
  <!-- Branches Dropdown -->
  <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
    | <%= l(:label_branch) %>: 
    <%= select_tag :branch,
                   options_for_select([''] + @repository.branches, @rev),
                   :id => 'branch' %>
  <% end -%>

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

  | <%= l(:label_revision) %>: 
  <%= text_field_tag 'rev', @rev, :size => 8 %>
<% end -%>