Chris@1464
|
1 <% content_for :header_tags do %>
|
Chris@1464
|
2 <%= javascript_include_tag 'repository_navigation' %>
|
Chris@1464
|
3 <% end %>
|
Chris@1464
|
4
|
Chris@1464
|
5 <%= link_to l(:label_statistics),
|
Chris@1464
|
6 {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
Chris@1464
|
7 :class => 'icon icon-stats' if @repository.supports_all_revisions? %>
|
Chris@1464
|
8
|
Chris@1464
|
9 <%= form_tag({:action => controller.action_name,
|
Chris@1464
|
10 :id => @project,
|
Chris@1464
|
11 :repository_id => @repository.identifier_param,
|
Chris@1464
|
12 :path => to_path_param(@path),
|
Chris@1464
|
13 :rev => nil},
|
Chris@1464
|
14 {:method => :get, :id => 'revision_selector'}) do -%>
|
Chris@1464
|
15 <!-- Branches Dropdown -->
|
Chris@1464
|
16 <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
Chris@1464
|
17 | <%= l(:label_branch) %>:
|
Chris@1464
|
18 <%= select_tag :branch,
|
Chris@1464
|
19 options_for_select([''] + @repository.branches, @rev),
|
Chris@1464
|
20 :id => 'branch' %>
|
Chris@1464
|
21 <% end -%>
|
Chris@1464
|
22
|
Chris@1464
|
23 <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
Chris@1464
|
24 | <%= l(:label_tag) %>:
|
Chris@1464
|
25 <%= select_tag :tag,
|
Chris@1464
|
26 options_for_select([''] + @repository.tags, @rev),
|
Chris@1464
|
27 :id => 'tag' %>
|
Chris@1464
|
28 <% end -%>
|
Chris@1464
|
29
|
Chris@1464
|
30 <% if @repository.supports_all_revisions? %>
|
Chris@1464
|
31 | <%= l(:label_revision) %>:
|
Chris@1464
|
32 <%= text_field_tag 'rev', @rev, :size => 8 %>
|
Chris@1464
|
33 <% end %>
|
Chris@1464
|
34 <% end -%>
|