@@ -7,55 +7,51 | |||||
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> |
|
7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> | |
8 |
|
8 | |||
9 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> |
|
9 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> | |
10 | <%= render :partial => 'dir_list' %> |
|
10 | <%= render :partial => 'dir_list' %> | |
11 | <% end %> |
|
11 | <% end %> | |
12 |
|
12 | |||
13 | <%= render_properties(@properties) %> |
|
13 | <%= render_properties(@properties) %> | |
14 |
|
14 | |||
15 | <% if authorize_for('repositories', 'revisions') %> |
|
15 | <% if authorize_for('repositories', 'revisions') %> | |
16 |
<% |
|
16 | <% if @changesets && !@changesets.empty? %> | |
17 | <h3><%= l(:label_latest_revision_plural) %></h3> |
|
17 | <h3><%= l(:label_latest_revision_plural) %></h3> | |
18 |
<%= |
|
18 | <%= render :partial => 'revisions', | |
19 | :locals => {:project => @project, :path => @path, |
|
19 | :locals => {:project => @project, :path => @path, | |
20 | :revisions => @changesets, :entry => nil }%> |
|
20 | :revisions => @changesets, :entry => nil }%> | |
21 |
<% |
|
21 | <% end %> | |
22 | <p> |
|
22 | <p> | |
23 | <% |
|
23 | <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) | |
24 | has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) |
|
24 | sep = '' %> | |
25 | sep = '' |
|
25 | <% if @repository.supports_all_revisions? && @path.blank? %> | |
26 | %> |
|
26 | <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %> | |
27 | <% if @repository.supports_all_revisions? && @path.blank? %> |
|
27 | <% sep = '|' %> | |
28 | <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %> |
|
28 | <% end %> | |
29 | <% sep = '|' %> |
|
29 | <% if @repository.supports_directory_revisions? && | |
30 | <% end %> |
|
30 | ( has_branches || !@path.blank? || !@rev.blank? ) %> | |
31 | <% |
|
31 | <%= sep %> | |
32 | if @repository.supports_directory_revisions? && |
|
32 | <%= link_to l(:label_view_revisions), | |
33 | ( has_branches || !@path.blank? || !@rev.blank? ) |
|
|||
34 | %> |
|
|||
35 | <%= sep %> |
|
|||
36 | <%= |
|
|||
37 | link_to l(:label_view_revisions), |
|
|||
38 | :action => 'changes', |
|
33 | :action => 'changes', | |
39 | :path => to_path_param(@path), |
|
34 | :path => to_path_param(@path), | |
40 | :id => @project, |
|
35 | :id => @project, | |
41 | :repository_id => @repository.identifier_param, |
|
36 | :repository_id => @repository.identifier_param, | |
42 | :rev => @rev |
|
37 | :rev => @rev %> | |
43 | %> |
|
38 | <% end %> | |
44 | <% end %> |
|
|||
45 | </p> |
|
39 | </p> | |
46 |
|
40 | <% if @repository.supports_all_revisions? %> | ||
47 | <% if @repository.supports_all_revisions? %> |
|
41 | <% content_for :header_tags do %> | |
48 | <% content_for :header_tags do %> |
|
42 | <%= auto_discovery_link_tag( | |
49 | <%= auto_discovery_link_tag( |
|
|||
50 | :atom, params.merge( |
|
43 | :atom, params.merge( | |
51 | {:format => 'atom', :action => 'revisions', |
|
44 | {:format => 'atom', :action => 'revisions', | |
52 | :id => @project, :page => nil, :key => User.current.rss_key})) %> |
|
45 | :id => @project, :page => nil, :key => User.current.rss_key})) %> | |
53 |
|
|
46 | <% end %> | |
54 |
|
47 | |||
55 |
|
|
48 | <% other_formats_links do |f| %> | |
56 | <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :repository_id => @repository.identifier_param, :key => User.current.rss_key} %> |
|
49 | <%= f.link_to 'Atom', | |
57 | <% end %> |
|
50 | :url => {:action => 'revisions', :id => @project, | |
58 | <% end %> |
|
51 | :repository_id => @repository.identifier_param, | |
|
52 | :key => User.current.rss_key} %> | |||
|
53 | <% end %> | |||
|
54 | <% end %> | |||
59 | <% end %> |
|
55 | <% end %> | |
60 |
|
56 | |||
61 | <% if @repositories.size > 1 %> |
|
57 | <% if @repositories.size > 1 %> | |
@@ -63,14 +59,15 | |||||
63 | <h3><%= l(:label_repository_plural) %></h3> |
|
59 | <h3><%= l(:label_repository_plural) %></h3> | |
64 | <%= @repositories.sort.collect {|repo| |
|
60 | <%= @repositories.sort.collect {|repo| | |
65 | link_to h(repo.name), |
|
61 | link_to h(repo.name), | |
66 |
{:controller => 'repositories', :action => 'show', |
|
62 | {:controller => 'repositories', :action => 'show', | |
|
63 | :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, | |||
67 | :class => 'repository' + (repo == @repository ? ' selected' : '') |
|
64 | :class => 'repository' + (repo == @repository ? ' selected' : '') | |
68 | }.join('<br />').html_safe %></p> |
|
65 | }.join('<br />').html_safe %></p> | |
69 | <% end %> |
|
66 | <% end %> | |
70 | <% end %> |
|
67 | <% end %> | |
71 |
|
68 | |||
72 | <% content_for :header_tags do %> |
|
69 | <% content_for :header_tags do %> | |
73 | <%= stylesheet_link_tag "scm" %> |
|
70 | <%= stylesheet_link_tag "scm" %> | |
74 | <% end %> |
|
71 | <% end %> | |
75 |
|
72 | |||
76 | <% html_title(l(:label_repository)) -%> |
|
73 | <% html_title(l(:label_repository)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now