show.html.erb
77 lines
| 2.8 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> | ||
|
r9187 | <h2><%= render :partial => 'breadcrumbs', | ||
:locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> | ||||
|
r103 | |||
|
r663 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> | ||
|
r9185 | <%= render :partial => 'dir_list' %> | ||
|
r556 | <% end %> | ||
|
r147 | |||
|
r2738 | <%= render_properties(@properties) %> | ||
|
r5018 | <% if authorize_for('repositories', 'revisions') %> | ||
|
r9185 | <% if @changesets && !@changesets.empty? %> | ||
<h3><%= l(:label_latest_revision_plural) %></h3> | ||||
<%= render :partial => 'revisions', | ||||
|
r5018 | :locals => {:project => @project, :path => @path, | ||
:revisions => @changesets, :entry => nil }%> | ||||
|
r9185 | <% end %> | ||
<p> | ||||
<% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) | ||||
sep = '' %> | ||||
<% if @repository.supports_all_revisions? && @path.blank? %> | ||||
|
r9187 | <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, | ||
:repository_id => @repository.identifier_param %> | ||||
|
r9185 | <% sep = '|' %> | ||
<% end %> | ||||
<% if @repository.supports_directory_revisions? && | ||||
( has_branches || !@path.blank? || !@rev.blank? ) %> | ||||
<%= sep %> | ||||
<%= link_to l(:label_view_revisions), | ||||
|
r5098 | :action => 'changes', | ||
|
r5102 | :path => to_path_param(@path), | ||
:id => @project, | ||||
|
r8530 | :repository_id => @repository.identifier_param, | ||
|
r9185 | :rev => @rev %> | ||
<% end %> | ||||
|
r9187 | </p> | ||
|
r9185 | <% if @repository.supports_all_revisions? %> | ||
<% content_for :header_tags do %> | ||||
<%= auto_discovery_link_tag( | ||||
|
r5016 | :atom, params.merge( | ||
{:format => 'atom', :action => 'revisions', | ||||
:id => @project, :page => nil, :key => User.current.rss_key})) %> | ||||
|
r9185 | <% end %> | ||
|
r5016 | |||
|
r9185 | <% other_formats_links do |f| %> | ||
<%= f.link_to 'Atom', | ||||
:url => {:action => 'revisions', :id => @project, | ||||
:repository_id => @repository.identifier_param, | ||||
:key => User.current.rss_key} %> | ||||
<% end %> | ||||
<% end %> | ||||
|
r374 | <% end %> | ||
|
r8530 | <% if @repositories.size > 1 %> | ||
|
r9184 | <% content_for :sidebar do %> | ||
<h3><%= l(:label_repository_plural) %></h3> | ||||
|
r9186 | <p> | ||
<%= @repositories.sort.collect {|repo| | ||||
|
r9184 | link_to h(repo.name), | ||
|
r9185 | {:controller => 'repositories', :action => 'show', | ||
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, | ||||
|
r8530 | :class => 'repository' + (repo == @repository ? ' selected' : '') | ||
|
r9186 | }.join('<br />').html_safe %> | ||
</p> | ||||
|
r9184 | <% end %> | ||
|
r8530 | <% end %> | ||
|
r147 | <% content_for :header_tags do %> | ||
|
r9185 | <%= stylesheet_link_tag "scm" %> | ||
|
r556 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_repository)) -%> | ||