diff --git a/app/models/journal.rb b/app/models/journal.rb index 1376d34..a979624 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 c2d8be9..78283c6 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 0b9d315..62d542b 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) %>