##// END OF EJS Templates
Do not show a link to the current annotate or view page (#2367)....
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

File last commit:

r2186:76a9101998f8
r2186:76a9101998f8
Show More
_link_to_functions.rhtml
10 lines | 643 B | text/html+ruby | RhtmlLexer
/ app / views / repositories / _link_to_functions.rhtml
<p>
<% if @repository.supports_cat? %>
<%= 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_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 %>
</p>