diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-27 18:10:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-27 18:10:36 +0000 |
commit | 76a9101998f85b543a26edaa7ed5be1b2b54a562 (patch) | |
tree | 4825c9bd85dbd5291b39f39d312b0ea84b9efc52 /app | |
parent | caf6b4b3f1d1da679ccff54e1e4b6ef29056c1c0 (diff) | |
download | redmine-76a9101998f85b543a26edaa7ed5be1b2b54a562.tar.gz redmine-76a9101998f85b543a26edaa7ed5be1b2b54a562.zip |
Do not show a link to the current annotate or view page (#2367).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2188 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/repositories/_link_to_functions.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/repositories/_link_to_functions.rhtml b/app/views/repositories/_link_to_functions.rhtml index 9461c99a8..7737bf484 100644 --- a/app/views/repositories/_link_to_functions.rhtml +++ b/app/views/repositories/_link_to_functions.rhtml @@ -1,9 +1,9 @@ <p> <% if @repository.supports_cat? %> - <%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | + <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | <% end %> <% if @repository.supports_annotate? %> - <%= link_to l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | + <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | <% end %> <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |