show.html.erb
64 lines
| 2.0 KiB
| text/plain
|
TextLexer
|
r1946 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> | ||
|
r1540 | |||
|
r2735 | <div class="contextual"> | ||
<%= render :partial => 'navigation' %> | ||||
|
r377 | </div> | ||
|
r2735 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> | ||
|
r103 | |||
|
r663 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> | ||
|
r147 | <%= render :partial => 'dir_list' %> | ||
|
r556 | <% end %> | ||
|
r147 | |||
|
r2738 | <%= render_properties(@properties) %> | ||
|
r5018 | <% if authorize_for('repositories', 'revisions') %> | ||
<% if @changesets && !@changesets.empty? %> | ||||
|
r374 | <h3><%= l(:label_latest_revision_plural) %></h3> | ||
|
r5018 | <%= render :partial => 'revisions', | ||
:locals => {:project => @project, :path => @path, | ||||
:revisions => @changesets, :entry => nil }%> | ||||
|
r5025 | <% end %> | ||
|
r5098 | <p> | ||
|
r5103 | <% | ||
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) | ||||
sep = '' | ||||
%> | ||||
<% if @repository.supports_all_revisions? && @path.blank? %> | ||||
|
r5098 | <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> | ||
|
r5103 | <% sep = '|' %> | ||
|
r5098 | <% end %> | ||
|
r5099 | <% | ||
if @repository.supports_directory_revisions? && | ||||
( has_branches || !@path.blank? || !@rev.blank? ) | ||||
%> | ||||
|
r5103 | <%= sep %> | ||
<%= | ||||
link_to l(:label_view_revisions), | ||||
|
r5098 | :action => 'changes', | ||
|
r5102 | :path => to_path_param(@path), | ||
:id => @project, | ||||
:rev => @rev | ||||
%> | ||||
|
r5098 | <% end %> | ||
</p> | ||||
|
r5016 | |||
|
r5098 | <% if true # @path.blank? %> | ||
|
r5018 | <% content_for :header_tags do %> | ||
|
r5016 | <%= auto_discovery_link_tag( | ||
:atom, params.merge( | ||||
{:format => 'atom', :action => 'revisions', | ||||
:id => @project, :page => nil, :key => User.current.rss_key})) %> | ||||
|
r5018 | <% end %> | ||
|
r5016 | |||
|
r5018 | <% other_formats_links do |f| %> | ||
|
r5016 | <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> | ||
|
r5018 | <% end %> | ||
|
r5016 | <% end %> | ||
|
r374 | <% end %> | ||
|
r147 | <% content_for :header_tags do %> | ||
<%= stylesheet_link_tag "scm" %> | ||||
|
r556 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_repository)) -%> | ||