summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-24 19:30:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-24 19:30:38 +0000
commitba1b857197abf897279ce4982c2c29004d668b7d (patch)
tree0c37fc52f911e4a504e8e6f54e0480d8c59c64d4 /app/views/repositories
parentfaa3d984ab0a44da354b901f4962d3441b800f99 (diff)
downloadredmine-ba1b857197abf897279ce4982c2c29004d668b7d.tar.gz
redmine-ba1b857197abf897279ce4982c2c29004d668b7d.zip
Added Darcs basic support.
Files in the repository can not be viewed or downloaded since Darcs doesn't support cat-like command. git-svn-id: http://redmine.rubyforge.org/svn/trunk@573 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/changes.rhtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/repositories/changes.rhtml b/app/views/repositories/changes.rhtml
index 35ce939fc..b8610818b 100644
--- a/app/views/repositories/changes.rhtml
+++ b/app/views/repositories/changes.rhtml
@@ -2,6 +2,7 @@
<h3><%=h @entry.name %></h3>
+<% if @repository.supports_cat? %>
<p>
<% if @entry.is_text? %>
<%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => @path, :rev => @rev } %> |
@@ -9,5 +10,6 @@
<%= link_to l(:button_download), {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' } %>
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
</p>
+<% end %>
<%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changes, :entry => @entry }%>