##// END OF EJS Templates
SCM browser:...
Jean-Philippe Lang -
r2738:a4d7a03b1428
parent child
Show More
@@ -1,5 +1,5
1 # redMine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
2 # Copyright (C) 2006-2009 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
@@ -72,7 +72,9 class RepositoriesController < ApplicationController
72 @entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
72 @entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
73 else
73 else
74 show_error_not_found and return unless @entries
74 show_error_not_found and return unless @entries
75 @changesets = @repository.latest_changesets(@path, @rev)
75 if @path.blank?
76 @changesets = @repository.latest_changesets(@path, @rev)
77 end
76 @properties = @repository.properties(@path, @rev)
78 @properties = @repository.properties(@path, @rev)
77 render :action => 'show'
79 render :action => 'show'
78 end
80 end
@@ -108,7 +110,7 class RepositoriesController < ApplicationController
108 show_error_not_found and return unless @entry
110 show_error_not_found and return unless @entry
109
111
110 # If the entry is a dir, show the browser
112 # If the entry is a dir, show the browser
111 browse and return if @entry.is_dir?
113 show and return if @entry.is_dir?
112
114
113 @content = @repository.cat(@path, @rev)
115 @content = @repository.cat(@path, @rev)
114 show_error_not_found and return unless @content
116 show_error_not_found and return unless @content
@@ -10,7 +10,9
10 <%= render :partial => 'dir_list' %>
10 <%= render :partial => 'dir_list' %>
11 <% end %>
11 <% end %>
12
12
13 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
13 <%= render_properties(@properties) %>
14
15 <% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
14 <h3><%= l(:label_latest_revision_plural) %></h3>
16 <h3><%= l(:label_latest_revision_plural) %></h3>
15 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
17 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
16 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
18 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now