To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / repositories / show.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (2.14 KB)

1 0:513646585e45 Chris
<%= 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 441:cbce1fd3b1b7 Chris
<% if authorize_for('repositories', 'revisions') %>
16
<%   if @changesets && !@changesets.empty? %>
17 0:513646585e45 Chris
<h3><%= l(:label_latest_revision_plural) %></h3>
18 441:cbce1fd3b1b7 Chris
<%=    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 0:513646585e45 Chris
46 441:cbce1fd3b1b7 Chris
<%   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 0:513646585e45 Chris
54 741:496b3cfa2f36 chris
<p class="statistics">
55
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
56
</p>
57
58 441:cbce1fd3b1b7 Chris
<%     other_formats_links do |f| %>
59
  <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
60
<%     end %>
61 741:496b3cfa2f36 chris
62 441:cbce1fd3b1b7 Chris
<%   end %>
63 0:513646585e45 Chris
<% end %>
64
65
<% content_for :header_tags do %>
66
<%= stylesheet_link_tag "scm" %>
67
<% end %>
68
69
<% html_title(l(:label_repository)) -%>