_navigation.html.erb
34 lines
| 1.2 KiB
| text/plain
|
TextLexer
|
r2735 | <% content_for :header_tags do %> | ||
<%= javascript_include_tag 'repository_navigation' %> | ||||
|
r330 | <% end %> | ||
|
r8352 | <%= link_to l(:label_statistics), | ||
|
r8530 | {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param}, | ||
|
r8545 | :class => 'icon icon-stats' if @repository.supports_all_revisions? %> | ||
|
r2735 | |||
|
r9346 | <%= form_tag({:action => controller.action_name, | ||
|
r8352 | :id => @project, | ||
|
r8530 | :repository_id => @repository.identifier_param, | ||
|
r8352 | :path => to_path_param(@path), | ||
|
r8558 | :rev => nil}, | ||
|
r8352 | {:method => :get, :id => 'revision_selector'}) do -%> | ||
|
r2735 | <!-- Branches Dropdown --> | ||
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%> | ||||
| <%= l(:label_branch) %>: | ||||
|
r8352 | <%= select_tag :branch, | ||
options_for_select([''] + @repository.branches, @rev), | ||||
:id => 'branch' %> | ||||
|
r2735 | <% end -%> | ||
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%> | ||||
| <%= l(:label_tag) %>: | ||||
|
r8352 | <%= select_tag :tag, | ||
options_for_select([''] + @repository.tags, @rev), | ||||
:id => 'tag' %> | ||||
|
r2735 | <% end -%> | ||
|
r1019 | |||
|
r8545 | <% if @repository.supports_all_revisions? %> | ||
| <%= l(:label_revision) %>: | ||||
<%= text_field_tag 'rev', @rev, :size => 8 %> | ||||
<% end %> | ||||
|
r2735 | <% end -%> | ||