To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / repositories / show.html.erb @ 1082:997f6d7738f7
History | View | Annotate | Download (2.14 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', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> |
| 8 |
|
| 9 |
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
| 10 |
<%= render :partial => 'dir_list' %>
|
| 11 |
<% end %>
|
| 12 |
|
| 13 |
<%= render_properties(@properties) %>
|
| 14 |
|
| 15 |
<% if authorize_for('repositories', 'revisions') %>
|
| 16 |
<% if @changesets && !@changesets.empty? %>
|
| 17 |
<h3><%= l(:label_latest_revision_plural) %></h3> |
| 18 |
<%= render :partial => 'revisions',
|
| 19 |
:locals => {:project => @project, :path => @path,
|
| 20 |
:revisions => @changesets, :entry => nil }%>
|
| 21 |
<% end %>
|
| 22 |
<p>
|
| 23 |
<%
|
| 24 |
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
|
| 25 |
sep = ''
|
| 26 |
%>
|
| 27 |
<% if @repository.supports_all_revisions? && @path.blank? %>
|
| 28 |
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
|
| 29 |
<% sep = '|' %>
|
| 30 |
<% end %>
|
| 31 |
<%
|
| 32 |
if @repository.supports_directory_revisions? &&
|
| 33 |
( has_branches || !@path.blank? || !@rev.blank? )
|
| 34 |
%>
|
| 35 |
<%= sep %>
|
| 36 |
<%=
|
| 37 |
link_to l(:label_view_revisions),
|
| 38 |
:action => 'changes',
|
| 39 |
:path => to_path_param(@path),
|
| 40 |
:id => @project,
|
| 41 |
:rev => @rev
|
| 42 |
%>
|
| 43 |
<% end %>
|
| 44 |
</p>
|
| 45 |
|
| 46 |
<% if true # @path.blank? %>
|
| 47 |
<% content_for :header_tags do %>
|
| 48 |
<%= auto_discovery_link_tag(
|
| 49 |
:atom, params.merge(
|
| 50 |
{:format => 'atom', :action => 'revisions',
|
| 51 |
:id => @project, :page => nil, :key => User.current.rss_key})) %>
|
| 52 |
<% end %>
|
| 53 |
|
| 54 |
<p class="statistics"> |
| 55 |
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
|
| 56 |
</p>
|
| 57 |
|
| 58 |
<% other_formats_links do |f| %>
|
| 59 |
<%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
|
| 60 |
<% end %>
|
| 61 |
|
| 62 |
<% end %>
|
| 63 |
<% end %>
|
| 64 |
|
| 65 |
<% content_for :header_tags do %>
|
| 66 |
<%= stylesheet_link_tag "scm" %>
|
| 67 |
<% end %>
|
| 68 |
|
| 69 |
<% html_title(l(:label_repository)) -%>
|