2013-08-01 10:33:49 +08:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'repository_navigation' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to l(:label_statistics),
|
2013-09-30 15:31:46 +08:00
|
|
|
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
2013-08-01 10:33:49 +08:00
|
|
|
:class => 'icon icon-stats' if @repository.supports_all_revisions? %>
|
|
|
|
|
|
|
|
<%= form_tag({:action => controller.action_name,
|
|
|
|
:id => @project,
|
|
|
|
:repository_id => @repository.identifier_param,
|
|
|
|
:path => to_path_param(@path),
|
|
|
|
:rev => nil},
|
|
|
|
{: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 -%>
|
|
|
|
|
|
|
|
<% if @repository.supports_all_revisions? %>
|
|
|
|
| <%= l(:label_revision) %>:
|
|
|
|
<%= text_field_tag 'rev', @rev, :size => 8 %>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|