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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
  2. <div class="contextual">
  3. <%= render :partial => 'navigation' %>
  4. </div>
  5. <h2 class="breadcrumbs"><%= render :partial => 'breadcrumbs',
  6. :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
  7. <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
  8. <%= render :partial => 'dir_list' %>
  9. <% end %>
  10. <%= render_properties(@properties) %>
  11. <% if authorize_for('repositories', 'revisions') %>
  12. <% if @changesets && !@changesets.empty? %>
  13. <h3><%= l(:label_latest_revision_plural) %></h3>
  14. <%= render :partial => 'revisions',
  15. :locals => {:project => @project, :path => @path,
  16. :revisions => @changesets, :entry => nil }%>
  17. <% end %>
  18. <p>
  19. <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
  20. sep = '' %>
  21. <% if @repository.supports_history? && @path.blank? %>
  22. <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project,
  23. :repository_id => @repository.identifier_param %>
  24. <% sep = '|' %>
  25. <% end %>
  26. <% if @repository.supports_directory_revisions? &&
  27. ( has_branches || !@path.blank? || !@rev.blank? ) %>
  28. <%= sep %>
  29. <%= link_to l(:label_view_revisions),
  30. :action => 'changes',
  31. :path => to_path_param(@path),
  32. :id => @project,
  33. :repository_id => @repository.identifier_param,
  34. :rev => @rev %>
  35. <% end %>
  36. </p>
  37. <% if @repository.supports_history? %>
  38. <% content_for :header_tags do %>
  39. <%= auto_discovery_link_tag(
  40. :atom,
  41. :action => 'revisions', :id => @project,
  42. :repository_id => @repository.identifier_param,
  43. :key => User.current.atom_key) %>
  44. <% end %>
  45. <% other_formats_links do |f| %>
  46. <%= f.link_to 'Atom',
  47. :url => {:action => 'revisions', :id => @project,
  48. :repository_id => @repository.identifier_param,
  49. :key => User.current.atom_key} %>
  50. <% end %>
  51. <% end %>
  52. <% end %>
  53. <% if @repositories.size > 1 %>
  54. <% content_for :sidebar do %>
  55. <h3><%= l(:label_repository_plural) %></h3>
  56. <p>
  57. <%= @repositories.sort.collect {|repo|
  58. link_to repo.name,
  59. {:controller => 'repositories', :action => 'show',
  60. :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
  61. :class => 'repository' + (repo == @repository ? ' selected' : '')
  62. }.join('<br />').html_safe %>
  63. </p>
  64. <% end %>
  65. <% end %>
  66. <% content_for :header_tags do %>
  67. <%= stylesheet_link_tag "scm" %>
  68. <% end %>
  69. <% html_title(l(:label_repository)) -%>