1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
@@ -258,7 +258,8 class ProjectsController < ApplicationController | |||||
258 | @events += Issue.find(:all, :include => [:project, :author, :tracker], :conditions => cond.conditions) |
|
258 | @events += Issue.find(:all, :include => [:project, :author, :tracker], :conditions => cond.conditions) | |
259 |
|
259 | |||
260 | cond = ARCondition.new(Project.allowed_to_condition(User.current, :view_issues, :project => @project, :with_subprojects => @with_subprojects)) |
|
260 | cond = ARCondition.new(Project.allowed_to_condition(User.current, :view_issues, :project => @project, :with_subprojects => @with_subprojects)) | |
261 |
cond.add(["#{Journal.table_name}.journalized_type = 'Issue' AND |
|
261 | cond.add(["#{Journal.table_name}.journalized_type = 'Issue' AND #{Journal.table_name}.created_on BETWEEN ? AND ?", @date_from, @date_to]) | |
|
262 | cond.add("#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> ''") | |||
262 | @events += Journal.find(:all, :include => [{:issue => :project}, :details, :user], :conditions => cond.conditions) |
|
263 | @events += Journal.find(:all, :include => [{:issue => :project}, :details, :user], :conditions => cond.conditions) | |
263 | end |
|
264 | end | |
264 |
|
265 |
@@ -33,7 +33,7 class Journal < ActiveRecord::Base | |||||
33 | acts_as_event :title => Proc.new {|o| status = ((s = o.new_status) ? " (#{s})" : nil); "#{o.issue.tracker} ##{o.issue.id}#{status}: #{o.issue.subject}" }, |
|
33 | acts_as_event :title => Proc.new {|o| status = ((s = o.new_status) ? " (#{s})" : nil); "#{o.issue.tracker} ##{o.issue.id}#{status}: #{o.issue.subject}" }, | |
34 | :description => :notes, |
|
34 | :description => :notes, | |
35 | :author => :user, |
|
35 | :author => :user, | |
36 |
:type => Proc.new {|o| (s = o.new_status) |
|
36 | :type => Proc.new {|o| (s = o.new_status) ? (s.is_closed? ? 'issue-closed' : 'issue-edit') : 'issue-note' }, | |
37 | :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.issue.id, :anchor => "change-#{o.id}"}} |
|
37 | :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.issue.id, :anchor => "change-#{o.id}"}} | |
38 |
|
38 | |||
39 | def save |
|
39 | def save |
@@ -190,6 +190,7 div#activity dd span.description, #search-results dd span.description { display: | |||||
190 | dt.issue { background-image: url(../images/ticket.png); } |
|
190 | dt.issue { background-image: url(../images/ticket.png); } | |
191 | dt.issue-edit { background-image: url(../images/ticket_edit.png); } |
|
191 | dt.issue-edit { background-image: url(../images/ticket_edit.png); } | |
192 | dt.issue-closed { background-image: url(../images/ticket_checked.png); } |
|
192 | dt.issue-closed { background-image: url(../images/ticket_checked.png); } | |
|
193 | dt.issue-note { background-image: url(../images/ticket_note.png); } | |||
193 | dt.changeset { background-image: url(../images/changeset.png); } |
|
194 | dt.changeset { background-image: url(../images/changeset.png); } | |
194 | dt.news { background-image: url(../images/news.png); } |
|
195 | dt.news { background-image: url(../images/news.png); } | |
195 | dt.message { background-image: url(../images/message.png); } |
|
196 | dt.message { background-image: url(../images/message.png); } |
General Comments 0
You need to be logged in to leave comments.
Login now