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.

show.rhtml 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
  2. <div class="contextual">
  3. <%= render :partial => 'navigation' %>
  4. </div>
  5. <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
  6. <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
  7. <%= render :partial => 'dir_list' %>
  8. <% end %>
  9. <%= render_properties(@properties) %>
  10. <% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
  11. <h3><%= l(:label_latest_revision_plural) %></h3>
  12. <%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => nil }%>
  13. <% if @path.blank? %>
  14. <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
  15. <% else %>
  16. <p><%= link_to l(:label_view_revisions), :action => 'changes', :path => to_path_param(@path), :id => @project %></p>
  17. <% end %>
  18. <% content_for :header_tags do %>
  19. <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
  20. <% end %>
  21. <% other_formats_links do |f| %>
  22. <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
  23. <% end %>
  24. <% end %>
  25. <% content_for :header_tags do %>
  26. <%= stylesheet_link_tag "scm" %>
  27. <% end %>
  28. <% html_title(l(:label_repository)) -%>