2013-08-01 10:33:49 +08:00
|
|
|
<% content_for :header_tags do %>
|
2015-04-16 13:40:46 +08:00
|
|
|
<%= javascript_include_tag 'repository_navigation' %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
2015-10-22 13:44:35 +08:00
|
|
|
<!--<a href="javascript:void(0);" class="pic_stats fl ml20 mt3"></a>-->
|
|
|
|
<%#= link_to l(:label_statistics),
|
2013-09-30 15:31:46 +08:00
|
|
|
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
2015-04-17 11:14:55 +08:00
|
|
|
:class => 'mt3 c_blue fl' if @repository.supports_all_revisions? %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
|
|
|
<%= form_tag({:action => controller.action_name,
|
2015-10-22 13:44:35 +08:00
|
|
|
:id => @project,
|
|
|
|
:repository_id => @repository.identifier_param,
|
|
|
|
:path => to_path_param(@path),
|
|
|
|
:rev => nil},
|
2015-04-17 11:14:55 +08:00
|
|
|
{:method => :get, :id => 'revision_selector', :class => "fl c_grey02 ml5"}) do -%>
|
2015-04-16 13:40:46 +08:00
|
|
|
<!-- Branches Dropdown -->
|
|
|
|
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
2015-10-22 13:44:35 +08:00
|
|
|
<%= l(:label_branch) %>:
|
|
|
|
<%= select_tag :branch, options_for_select([''] + @repository.branches, @rev), :id => 'branch' %>
|
2015-04-16 13:40:46 +08:00
|
|
|
<% end -%>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2015-04-16 13:40:46 +08:00
|
|
|
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
|
|
|
| <%= l(:label_tag) %>:
|
2015-10-22 13:44:35 +08:00
|
|
|
<%= select_tag :tag, options_for_select([''] + @repository.tags, @rev), :id => 'tag' %>
|
2015-04-16 13:40:46 +08:00
|
|
|
<% end -%>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2015-10-22 13:44:35 +08:00
|
|
|
<%# if @repository.supports_all_revisions? %>
|
|
|
|
| <%#= l(:label_revision) %>:
|
|
|
|
<%#= text_field_tag 'rev', @rev, :size => 8 %>
|
|
|
|
<%# end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end -%>
|