@@ -1,9 +1,9 | |||||
1 | <p> |
|
1 | <p> | |
2 | <% if @repository.supports_cat? %> |
|
2 | <% if @repository.supports_cat? %> | |
3 | <%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | |
|
3 | <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | | |
4 | <% end %> |
|
4 | <% end %> | |
5 | <% if @repository.supports_annotate? %> |
|
5 | <% if @repository.supports_annotate? %> | |
6 | <%= link_to l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | |
|
6 | <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> | | |
7 | <% end %> |
|
7 | <% end %> | |
8 | <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> |
|
8 | <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %> | |
9 | <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |
|
9 | <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |
General Comments 0
You need to be logged in to leave comments.
Login now