Project

General

Profile

Feature #25999 » 0001-Make-View-the-default-action-for-repository-entries-.patch

Jan from Planio www.plan.io, 2017-05-24 17:27

View differences:

app/views/repositories/_breadcrumbs.html.erb
18 18
<% end %>
19 19
<% if filename %>
20 20
    / <%= link_to filename,
21
                   :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
21
                   :action => 'entry', :id => @project, :repository_id => @repository.identifier_param,
22 22
                   :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
23 23
<% end %>
24 24
<%
app/views/repositories/_dir_list_content.html.erb
17 17
                       :parent_id => tr_id)) %>');">&nbsp;</span>
18 18
<% end %>
19 19
<%=  link_to ent_name,
20
          {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
20
          {:action => (entry.is_dir? ? 'show' : 'entry'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
21 21
          :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
22 22
</td>
23 23
<td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
app/views/repositories/_link_to_functions.html.erb
1 1
<% if @entry && @entry.kind == 'file' %>
2 2

  
3 3
<p>
4
<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
5 4
<% if @repository.supports_cat? %>
6 5
    <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
7 6
<% end %>
7
<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
8 8
<% if @repository.supports_annotate? %>
9 9
    <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
10 10
<% end %>
(6-6/6)