2008-10-25 08:21:57 +04:00
|
|
|
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
2008-06-15 19:56:47 +04:00
|
|
|
|
2009-08-16 02:41:40 +04:00
|
|
|
<div class="contextual">
|
|
|
|
<%= render :partial => 'navigation' %>
|
2007-03-25 21:11:46 +04:00
|
|
|
</div>
|
|
|
|
|
2012-04-04 14:43:29 +04:00
|
|
|
<h2><%= render :partial => 'breadcrumbs',
|
|
|
|
:locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
|
2006-12-24 16:38:45 +03:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
2012-04-04 14:19:55 +04:00
|
|
|
<%= render :partial => 'dir_list' %>
|
2007-06-13 00:12:05 +04:00
|
|
|
<% end %>
|
2007-01-05 22:10:57 +03:00
|
|
|
|
2009-08-17 18:26:13 +04:00
|
|
|
<%= render_properties(@properties) %>
|
|
|
|
|
2011-03-15 10:14:39 +03:00
|
|
|
<% if authorize_for('repositories', 'revisions') %>
|
2012-04-04 14:19:55 +04:00
|
|
|
<% if @changesets && !@changesets.empty? %>
|
|
|
|
<h3><%= l(:label_latest_revision_plural) %></h3>
|
|
|
|
<%= render :partial => 'revisions',
|
2011-03-15 10:14:39 +03:00
|
|
|
:locals => {:project => @project, :path => @path,
|
|
|
|
:revisions => @changesets, :entry => nil }%>
|
2012-04-04 14:19:55 +04:00
|
|
|
<% end %>
|
|
|
|
<p>
|
|
|
|
<% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
|
|
|
|
sep = '' %>
|
|
|
|
<% if @repository.supports_all_revisions? && @path.blank? %>
|
2012-04-04 14:43:29 +04:00
|
|
|
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project,
|
|
|
|
:repository_id => @repository.identifier_param %>
|
2012-04-04 14:19:55 +04:00
|
|
|
<% sep = '|' %>
|
|
|
|
<% end %>
|
|
|
|
<% if @repository.supports_directory_revisions? &&
|
|
|
|
( has_branches || !@path.blank? || !@rev.blank? ) %>
|
|
|
|
<%= sep %>
|
|
|
|
<%= link_to l(:label_view_revisions),
|
2011-03-25 02:42:50 +03:00
|
|
|
:action => 'changes',
|
2011-03-26 05:39:31 +03:00
|
|
|
:path => to_path_param(@path),
|
|
|
|
:id => @project,
|
2012-01-15 22:19:19 +04:00
|
|
|
:repository_id => @repository.identifier_param,
|
2012-04-04 14:19:55 +04:00
|
|
|
:rev => @rev %>
|
|
|
|
<% end %>
|
2012-04-04 14:43:29 +04:00
|
|
|
</p>
|
2012-04-04 14:19:55 +04:00
|
|
|
<% if @repository.supports_all_revisions? %>
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(
|
2011-03-15 08:11:21 +03:00
|
|
|
:atom, params.merge(
|
|
|
|
{:format => 'atom', :action => 'revisions',
|
|
|
|
:id => @project, :page => nil, :key => User.current.rss_key})) %>
|
2012-04-04 14:19:55 +04:00
|
|
|
<% end %>
|
2011-03-15 08:11:21 +03:00
|
|
|
|
2012-04-04 14:19:55 +04:00
|
|
|
<% 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 %>
|
2007-03-25 16:12:15 +04:00
|
|
|
<% end %>
|
|
|
|
|
2012-01-15 22:19:19 +04:00
|
|
|
<% if @repositories.size > 1 %>
|
2012-04-04 14:19:41 +04:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<h3><%= l(:label_repository_plural) %></h3>
|
2012-04-04 14:43:15 +04:00
|
|
|
<p>
|
|
|
|
<%= @repositories.sort.collect {|repo|
|
2012-04-04 14:19:41 +04:00
|
|
|
link_to h(repo.name),
|
2012-04-04 14:19:55 +04:00
|
|
|
{:controller => 'repositories', :action => 'show',
|
|
|
|
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
|
2012-01-15 22:19:19 +04:00
|
|
|
:class => 'repository' + (repo == @repository ? ' selected' : '')
|
2012-04-04 14:43:15 +04:00
|
|
|
}.join('<br />').html_safe %>
|
|
|
|
</p>
|
2012-04-04 14:19:41 +04:00
|
|
|
<% end %>
|
2012-01-15 22:19:19 +04:00
|
|
|
<% end %>
|
|
|
|
|
2007-01-05 22:10:57 +03:00
|
|
|
<% content_for :header_tags do %>
|
2012-04-04 14:19:55 +04:00
|
|
|
<%= stylesheet_link_tag "scm" %>
|
2007-06-13 00:12:05 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_repository)) -%>
|