From 2af910e8e61f75903a930541a8eac7e7d780e77f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 14 Jun 2008 12:21:52 +0000 Subject: [PATCH] Merged r1505, r1506, r1511, r1512, r1517, r1518, r1524 to 1526 from trunk. git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1532 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/journal.rb | 2 +- app/models/repository/cvs.rb | 3 ++- app/views/layouts/base.rhtml | 2 +- app/views/repositories/_dir_list_content.rhtml | 2 +- app/views/repositories/changes.rhtml | 3 ++- lib/SVG/Graph/Graph.rb | 2 +- lib/redcloth.rb | 2 +- public/stylesheets/application.css | 2 +- test/unit/helpers/application_helper_test.rb | 8 ++++++++ 9 files changed, 18 insertions(+), 8 deletions(-) diff --git a/app/models/journal.rb b/app/models/journal.rb index 1376d349e..a9796240e 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -30,7 +30,7 @@ class Journal < ActiveRecord::Base :project_key => "#{Issue.table_name}.project_id", :date_column => "#{Issue.table_name}.created_on" - acts_as_event :title => Proc.new {|o| "#{o.issue.tracker.name} ##{o.issue.id}: #{o.issue.subject}" + ((s = o.new_status) ? " (#{s})" : '') }, + acts_as_event :title => Proc.new {|o| status = ((s = o.new_status) ? " (#{s})" : nil); "#{o.issue.tracker} ##{o.issue.id}#{status}: #{o.issue.subject}" }, :description => :notes, :author => :user, :type => Proc.new {|o| (s = o.new_status) && s.is_closed? ? 'issue-closed' : 'issue-edit' }, diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index c2d8be977..78283c60b 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -76,7 +76,8 @@ class Repository::Cvs < Repository unless revision_to revision_to=scm.get_previous_revision(revision_from) end - diff=diff+scm.diff(change_from.path, revision_from, revision_to, type) + file_diff = scm.diff(change_from.path, revision_from, revision_to) + diff = diff + file_diff unless file_diff.nil? end end return diff diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 0b9d31512..62d542b7b 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -36,7 +36,7 @@ <%= render :partial => 'layouts/project_selector' if User.current.memberships.any? %> -

<%= h(@project ? @project.name : Setting.app_title) %>

+

<%= h(@project && !@project.new_record? ? @project.name : Setting.app_title) %>