2009-08-16 02:41:40 +04:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'repository_navigation' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
2012-01-02 18:41:02 +04:00
|
|
|
<%= link_to l(:label_statistics),
|
2012-01-15 22:19:19 +04:00
|
|
|
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
2012-01-17 00:22:12 +04:00
|
|
|
:class => 'icon icon-stats' if @repository.supports_all_revisions? %>
|
2009-08-16 02:41:40 +04:00
|
|
|
|
2012-01-02 18:41:02 +04:00
|
|
|
<% form_tag({:action => controller.action_name,
|
|
|
|
:id => @project,
|
2012-01-15 22:19:19 +04:00
|
|
|
:repository_id => @repository.identifier_param,
|
2012-01-02 18:41:02 +04:00
|
|
|
:path => to_path_param(@path),
|
|
|
|
:rev => ''},
|
|
|
|
{:method => :get, :id => 'revision_selector'}) do -%>
|
2009-08-16 02:41:40 +04:00
|
|
|
<!-- Branches Dropdown -->
|
|
|
|
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
|
|
|
| <%= l(:label_branch) %>:
|
2012-01-02 18:41:02 +04:00
|
|
|
<%= select_tag :branch,
|
|
|
|
options_for_select([''] + @repository.branches, @rev),
|
|
|
|
:id => 'branch' %>
|
2009-08-16 02:41:40 +04:00
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
|
|
|
| <%= l(:label_tag) %>:
|
2012-01-02 18:41:02 +04:00
|
|
|
<%= select_tag :tag,
|
|
|
|
options_for_select([''] + @repository.tags, @rev),
|
|
|
|
:id => 'tag' %>
|
2009-08-16 02:41:40 +04:00
|
|
|
<% end -%>
|
2008-01-03 01:41:53 +03:00
|
|
|
|
2012-01-17 00:22:12 +04:00
|
|
|
<% if @repository.supports_all_revisions? %>
|
|
|
|
| <%= l(:label_revision) %>:
|
|
|
|
<%= text_field_tag 'rev', @rev, :size => 8 %>
|
|
|
|
<% end %>
|
2009-08-16 02:41:40 +04:00
|
|
|
<% end -%>
|