Mercurial > hg > soundsoftware-site
annotate app/views/repositories/_link_to_functions.rhtml @ 331:4ed4207d81c5 live
Merge
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 29 Mar 2011 18:04:17 +0100 |
parents | 513646585e45 |
children |
rev | line source |
---|---|
Chris@0 | 1 <% if @entry && @entry.kind == 'file' %> |
Chris@0 | 2 |
Chris@0 | 3 <p> |
Chris@0 | 4 <%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | |
Chris@0 | 5 <% if @repository.supports_cat? %> |
Chris@0 | 6 <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | |
Chris@0 | 7 <% end %> |
Chris@0 | 8 <% if @repository.supports_annotate? %> |
Chris@0 | 9 <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | |
Chris@0 | 10 <% end %> |
Chris@0 | 11 <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> |
Chris@0 | 12 <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |
Chris@0 | 13 </p> |
Chris@0 | 14 |
Chris@0 | 15 <% end %> |