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.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (2.01 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 | 441:cbce1fd3b1b7 | Chris | <% other_formats_links do |f| %>
|
| 55 | <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
|
||
| 56 | <% end %>
|
||
| 57 | <% end %>
|
||
| 58 | 0:513646585e45 | Chris | <% end %>
|
| 59 | |||
| 60 | <% content_for :header_tags do %>
|
||
| 61 | <%= stylesheet_link_tag "scm" %>
|
||
| 62 | <% end %>
|
||
| 63 | |||
| 64 | <% html_title(l(:label_repository)) -%> |