To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 15 / 157ff2a530e9a3a9d19bec3ad0dea0bda840bb9b.svn-base @ 1298:4f746d8966dd
History | View | Annotate | Download (2.8 KB)
| 1 |
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
|---|---|
| 2 |
|
| 3 |
<div class="contextual"> |
| 4 |
<%= render :partial => 'navigation' %> |
| 5 |
</div> |
| 6 |
|
| 7 |
<h2><%= render :partial => 'breadcrumbs', |
| 8 |
:locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
|
| 9 |
|
| 10 |
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
| 11 |
<%= render :partial => 'dir_list' %> |
| 12 |
<% end %> |
| 13 |
|
| 14 |
<%= render_properties(@properties) %> |
| 15 |
|
| 16 |
<% if authorize_for('repositories', 'revisions') %>
|
| 17 |
<% if @changesets && !@changesets.empty? %> |
| 18 |
<h3><%= l(:label_latest_revision_plural) %></h3> |
| 19 |
<%= render :partial => 'revisions', |
| 20 |
:locals => {:project => @project, :path => @path,
|
| 21 |
:revisions => @changesets, :entry => nil }%> |
| 22 |
<% end %> |
| 23 |
<p> |
| 24 |
<% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) |
| 25 |
sep = '' %> |
| 26 |
<% if @repository.supports_all_revisions? && @path.blank? %> |
| 27 |
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, |
| 28 |
:repository_id => @repository.identifier_param %> |
| 29 |
<% sep = '|' %> |
| 30 |
<% end %> |
| 31 |
<% if @repository.supports_directory_revisions? && |
| 32 |
( has_branches || !@path.blank? || !@rev.blank? ) %> |
| 33 |
<%= sep %> |
| 34 |
<%= link_to l(:label_view_revisions), |
| 35 |
:action => 'changes', |
| 36 |
:path => to_path_param(@path), |
| 37 |
:id => @project, |
| 38 |
:repository_id => @repository.identifier_param, |
| 39 |
:rev => @rev %> |
| 40 |
<% end %> |
| 41 |
</p> |
| 42 |
<% if @repository.supports_all_revisions? %> |
| 43 |
<% content_for :header_tags do %> |
| 44 |
<%= auto_discovery_link_tag( |
| 45 |
:atom, params.merge( |
| 46 |
{:format => 'atom', :action => 'revisions',
|
| 47 |
:id => @project, :page => nil, :key => User.current.rss_key})) %> |
| 48 |
<% end %> |
| 49 |
|
| 50 |
<% other_formats_links do |f| %> |
| 51 |
<%= f.link_to 'Atom', |
| 52 |
:url => {:action => 'revisions', :id => @project,
|
| 53 |
:repository_id => @repository.identifier_param, |
| 54 |
:key => User.current.rss_key} %> |
| 55 |
<% end %> |
| 56 |
<% end %> |
| 57 |
<% end %> |
| 58 |
|
| 59 |
<% if @repositories.size > 1 %> |
| 60 |
<% content_for :sidebar do %> |
| 61 |
<h3><%= l(:label_repository_plural) %></h3> |
| 62 |
<p> |
| 63 |
<%= @repositories.sort.collect {|repo|
|
| 64 |
link_to h(repo.name), |
| 65 |
{:controller => 'repositories', :action => 'show',
|
| 66 |
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, |
| 67 |
:class => 'repository' + (repo == @repository ? ' selected' : '') |
| 68 |
}.join('<br />').html_safe %>
|
| 69 |
</p> |
| 70 |
<% end %> |
| 71 |
<% end %> |
| 72 |
|
| 73 |
<% content_for :header_tags do %> |
| 74 |
<%= stylesheet_link_tag "scm" %> |
| 75 |
<% end %> |
| 76 |
|
| 77 |
<% html_title(l(:label_repository)) -%> |