]> source.dussan.org Git - redmine.git/commitdiff
add changeset comment in revision page title (#14138)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 30 May 2013 08:05:44 +0000 (08:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 30 May 2013 08:05:44 +0000 (08:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11909 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/revision.html.erb
test/functional/repositories_mercurial_controller_test.rb

index b9293d9d51ffd4aa540337a88c7b57316d51b925..a5fe87246296827736d906ba7d1741b214630562 100644 (file)
@@ -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)
+ -%>
index 4b3263e1867bf1378895a2d263440163453c8d09..fd9c17b58526c117d656f4d60389af07710d775a 100644 (file)
@@ -485,7 +485,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
           assert_response :success
           assert_template 'revision'
           assert_select 'title',
-                        :text => 'Revision 1:9d5b5b004199 - eCookbook Subproject 1 - Redmine'
+                        :text => 'Revision 1:9d5b5b004199 - Added 2 files and modified one. - eCookbook Subproject 1 - Redmine'
           end
       end
     end