_link_to_functions.rhtml

Go MAEDA, 2008-12-23 04:10

Download (634 Bytes)

 
1
<% if @repository.supports_cat? %>
2
    <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
3
<% end %>
4
<% if @repository.supports_annotate? %>
5
    <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
6
<% end %>
7
<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %>
8
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>