comparison app/views/repositories/show.html.erb @ 908:c6c2cbd0afee redmine-1.3

Rename .rhtml files to .html.erb in preparation for merge
author Chris Cannam
date Fri, 24 Feb 2012 18:36:29 +0000
parents app/views/repositories/show.rhtml@cbce1fd3b1b7
children 5e80956cc792 433d4f72a19b
comparison
equal deleted inserted replaced
907:df51e8ff578d 908:c6c2cbd0afee
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 <% 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 <% end %>
59
60 <% content_for :header_tags do %>
61 <%= stylesheet_link_tag "scm" %>
62 <% end %>
63
64 <% html_title(l(:label_repository)) -%>