mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-22 00:11:14 +00:00
Add "behind-schedule" CSS class to issues (#31881).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19868 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
09db3e7131
commit
3f11c1f10b
@ -1390,6 +1390,7 @@ class Issue < ActiveRecord::Base
|
||||
s << ' child' if child?
|
||||
s << ' parent' unless leaf?
|
||||
s << ' private' if is_private?
|
||||
s << ' behind-schedule' if behind_schedule?
|
||||
if user.logged?
|
||||
s << ' created-by-me' if author_id == user.id
|
||||
s << ' assigned-to-me' if assigned_to_id == user.id
|
||||
|
||||
@ -3021,6 +3021,11 @@ class IssueTest < ActiveSupport::TestCase
|
||||
assert_include 'assigned-to-me', issue2.css_classes(user)
|
||||
end
|
||||
|
||||
def test_css_classes_behind_schedule
|
||||
assert_include 'behind-schedule', Issue.find(1).css_classes.split(' ')
|
||||
assert_not_include 'behind-schedule', Issue.find(2).css_classes.split(' ')
|
||||
end
|
||||
|
||||
def test_save_attachments_with_hash_should_save_attachments_in_keys_order
|
||||
set_tmp_attachments_directory
|
||||
issue = Issue.generate!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user