You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_navigation.rhtml 910B

123456789101112131415161718192021
  1. <% content_for :header_tags do %>
  2. <%= javascript_include_tag 'repository_navigation' %>
  3. <% end %>
  4. <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
  5. <% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
  6. <!-- Branches Dropdown -->
  7. <% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
  8. | <%= l(:label_branch) %>:
  9. <%= select_tag :branch, options_for_select([''] + @repository.branches,@rev), :id => 'branch' %>
  10. <% end -%>
  11. <% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
  12. | <%= l(:label_tag) %>:
  13. <%= select_tag :tag, options_for_select([''] + @repository.tags,@rev), :id => 'tag' %>
  14. <% end -%>
  15. | <%= l(:label_revision) %>:
  16. <%= text_field_tag 'rev', @rev, :size => 8 %>
  17. <% end -%>