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.html.erb 1.2KB

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