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),
|
|
|
|
{:action => 'stats', :id => @project},
|
|
|
|
:class => 'icon icon-stats' %>
|
2009-08-16 02:41:40 +04:00
|
|
|
|
2012-01-02 18:41:02 +04:00
|
|
|
<% form_tag({:action => controller.action_name,
|
|
|
|
:id => @project,
|
|
|
|
: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
|
|
|
|
2009-08-16 02:41:40 +04:00
|
|
|
| <%= l(:label_revision) %>:
|
|
|
|
<%= text_field_tag 'rev', @rev, :size => 8 %>
|
|
|
|
<% end -%>
|