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