diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-19 17:51:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-19 17:51:13 +0000 |
commit | f162337e1b3625da7eedb747f1b2bb4752c27646 (patch) | |
tree | de961a92fadf7cdf1f5b56f41c77ac4411945775 /app/views | |
parent | 93a33c62862d723722106fd7c624bb3e830085f6 (diff) | |
download | redmine-f162337e1b3625da7eedb747f1b2bb4752c27646.tar.gz redmine-f162337e1b3625da7eedb747f1b2bb4752c27646.zip |
Always show 'View' and 'Annotate' links on repository files (download will be forced when clicking 'View' if the file is binary).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1274 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/repositories/changes.rhtml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/repositories/changes.rhtml b/app/views/repositories/changes.rhtml index 55842a28b..2d7462b29 100644 --- a/app/views/repositories/changes.rhtml +++ b/app/views/repositories/changes.rhtml @@ -3,13 +3,11 @@ <h3><%=h @entry.name %></h3> <p> -<% if @entry.is_text? %> - <% if @repository.supports_cat? %> - <%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => @path, :rev => @rev } %> | - <% end %> - <% if @repository.supports_annotate? %> - <%= link_to l(:button_annotate), {:action => 'annotate', :id => @project, :path => @path, :rev => @rev } %> | - <% end %> +<% if @repository.supports_cat? %> + <%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => @path, :rev => @rev } %> | +<% end %> +<% if @repository.supports_annotate? %> + <%= link_to l(:button_annotate), {:action => 'annotate', :id => @project, :path => @path, :rev => @rev } %> | <% end %> <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |