Project

General

Profile

Actions

Feature #1279

closed

Add links to repository views of files in revision listing

Added by Mat Trudel about 16 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-05-21
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed

Description

It's dead simple, and probably more easily conveyed by the following patch:

Index: app/views/repositories/revision.rhtml
===================================================================
--- app/views/repositories/revision.rhtml    (revision 1418)
+++ app/views/repositories/revision.rhtml    (working copy)
@@ -46,7 +46,7 @@
 <tbody>
 <% @changes.each do |change| %>
 <tr class="<%= cycle 'odd', 'even' %>">
-<td><div class="square action_<%= change.action %>"></div> <%= change.path %> <%= "(#{change.revision})" unless change.revision.blank?  %></td>
+<td><div class="square action_<%= change.action %>"></div><%= (change.action != "D")? link_to(change.path, :action => 'changes', :id => @project, :path => without_leading_slash(change.path), :rev => @changeset.revision) : change.path %> <%= "(#{change.revision})" unless change.revision.blank?  %></td>
 <td align="right">
 <% if change.action == "M" %>
 <%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.path), :rev => @changeset.revision %>
Actions #1

Updated by Holger Just almost 14 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Resolution set to Fixed

This is implemented in current versions of Redmine.
Also, the patch does not apply anymore as the code basis changed significantly.

Actions

Also available in: Atom PDF