summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-06 16:45:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-06 16:45:06 +0000
commita628ba7e60624c961842856a00169510d10ef5e9 (patch)
tree5a5af204a62483f681fd299c3b3647f853eddcc2 /app/views/repositories
parent5e18803613457f3a80b287081dfbb2f16f5a830b (diff)
downloadredmine-a628ba7e60624c961842856a00169510d10ef5e9.tar.gz
redmine-a628ba7e60624c961842856a00169510d10ef5e9.zip
Don't display download button for dir entries (#26350).
Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16762 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/_navigation.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/repositories/_navigation.html.erb b/app/views/repositories/_navigation.html.erb
index 0cbb94ae6..0bd6e33cf 100644
--- a/app/views/repositories/_navigation.html.erb
+++ b/app/views/repositories/_navigation.html.erb
@@ -2,7 +2,7 @@
<%= javascript_include_tag 'repository_navigation' %>
<% end %>
-<% if @entry && @repository.supports_cat? %>
+<% if @entry && !@entry.is_dir? && @repository.supports_cat? %>
<% download_label = @entry.size ? "#{l :button_download} (#{number_to_human_size @entry.size})" : l(:button_download) %>
<%= link_to(download_label,
{:action => 'raw', :id => @project,