_link_to_functions.rhtml
15 lines
| 847 B
| text/html+ruby
|
RhtmlLexer
|
r2744 | <% if @entry && @entry.kind == 'file' %> | ||
|
r2165 | <p> | ||
|
r2718 | <%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | | ||
|
r2165 | <% if @repository.supports_cat? %> | ||
|
r2186 | <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | | ||
|
r2165 | <% end %> | ||
<% if @repository.supports_annotate? %> | ||||
|
r2186 | <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | | ||
|
r2165 | <% 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> | ||||
|
r2744 | |||
<% end %> | ||||