Project

General

Profile

Actions

Patch #14138

closed

Output changeset comment in html title

Added by Toshi MARUYAMA over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb
--- a/app/views/repositories/revision.html.erb
+++ b/app/views/repositories/revision.html.erb
@@ -94,4 +94,8 @@
 <%= stylesheet_link_tag "scm" %>
 <% end %>

-<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>
+<%
+  title = "#{l(:label_revision)} #{format_revision(@changeset)}" 
+  title << " #{truncate(@changeset.comments, :length => 80)}" 
+  html_title(title)
+ -%>

Files

old.png (44.8 KB) old.png Toshi MARUYAMA, 2013-05-24 10:14
patch.png (54.9 KB) patch.png Toshi MARUYAMA, 2013-05-24 10:14
Actions

Also available in: Atom PDF