OSDN Git Service

add Redmine trunk rev 3089
[redminele/redminele.git] / redmine / app / views / repositories / _link_to_functions.rhtml
1 <% if @entry && @entry.kind == 'file' %>
2
3 <p>
4 <%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
5 <% if @repository.supports_cat? %>
6     <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
7 <% end %>
8 <% if @repository.supports_annotate? %>
9     <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
10 <% end %>
11 <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %>
12 <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
13 </p>
14
15 <% end %>