-# redMine - project management software
-# Copyright (C) 2006-2007 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2009 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
else
show_error_not_found and return unless @entries
- @changesets = @repository.latest_changesets(@path, @rev)
+ if @path.blank?
+ @changesets = @repository.latest_changesets(@path, @rev)
+ end
@properties = @repository.properties(@path, @rev)
render :action => 'show'
end
show_error_not_found and return unless @entry
# If the entry is a dir, show the browser
- browse and return if @entry.is_dir?
+ show and return if @entry.is_dir?
@content = @repository.cat(@path, @rev)
show_error_not_found and return unless @content
+++ /dev/null
-<div class="contextual">
-<%= render :partial => 'navigation' %>
-</div>
-
-<h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
-
-<%= render :partial => 'dir_list' %>
-<%= render_properties(@properties) %>
-
-<% content_for :header_tags do %>
-<%= stylesheet_link_tag "scm" %>
-<% end %>
<%= render :partial => 'dir_list' %>
<% end %>
-<% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
+<%= render_properties(@properties) %>
+
+<% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
<h3><%= l(:label_latest_revision_plural) %></h3>
<%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
<p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>