Project

General

Profile

Feature #31881 » 31881.patch

Go MAEDA, 2019-08-19 16:41

View differences:

app/models/issue.rb
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
public/stylesheets/application.css
table.list td.reorder {width:15%; white-space:nowrap; text-align:center; }
table.list table.progress td {padding-right:0px;}
table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
table.list tr.behind-schedule td.due_date { color: #f66914; }
table.list tr.overdue td.due_date { color: #c22; }
#role-permissions-trackers table.list th {white-space:normal;}
......
div.issue .attributes .attribute {padding-left:180px; clear:left; min-height: 1.8em;}
div.issue .attributes .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left; overflow:hidden; text-overflow: ellipsis;}
div.issue .attribute .value {overflow:auto; text-overflow: ellipsis;}
div.issue.behind-schedule .due-date .value { color: #f66b14; }
div.issue.overdue .due-date .value { color: #c22; }
#issue_tree table.issues, #relations table.issues { border: 0; }
test/unit/issue_test.rb
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!
(1-1/2)