Project

General

Profile

Feature #31881 » 31881.patch

Go MAEDA, 2019-08-19 16:41

View differences:

app/models/issue.rb
1360 1360
    s << ' child' if child?
1361 1361
    s << ' parent' unless leaf?
1362 1362
    s << ' private' if is_private?
1363
    s << ' behind-schedule' if behind_schedule?
1363 1364
    if user.logged?
1364 1365
      s << ' created-by-me' if author_id == user.id
1365 1366
      s << ' assigned-to-me' if assigned_to_id == user.id
public/stylesheets/application.css
234 234
table.list td.reorder {width:15%; white-space:nowrap; text-align:center; }
235 235
table.list table.progress td {padding-right:0px;}
236 236
table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
237
table.list tr.behind-schedule td.due_date { color: #f66914; }
237 238
table.list tr.overdue td.due_date  { color: #c22; }
238 239
#role-permissions-trackers table.list th {white-space:normal;}
239 240

  
......
504 505
div.issue .attributes .attribute {padding-left:180px; clear:left; min-height: 1.8em;}
505 506
div.issue .attributes .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left;  overflow:hidden; text-overflow: ellipsis;}
506 507
div.issue .attribute .value {overflow:auto; text-overflow: ellipsis;}
508
div.issue.behind-schedule .due-date .value { color: #f66b14; }
507 509
div.issue.overdue .due-date .value { color: #c22; }
508 510

  
509 511
#issue_tree table.issues, #relations table.issues { border: 0; }
test/unit/issue_test.rb
2950 2950
    assert_include 'assigned-to-me', issue2.css_classes(user)
2951 2951
  end
2952 2952

  
2953
  def test_css_classes_behind_schedule
2954
    assert_include 'behind-schedule', Issue.find(1).css_classes.split(' ')
2955
    assert_not_include 'behind-schedule', Issue.find(2).css_classes.split(' ')
2956
  end
2957

  
2953 2958
  def test_save_attachments_with_hash_should_save_attachments_in_keys_order
2954 2959
    set_tmp_attachments_directory
2955 2960
    issue = Issue.generate!
(1-1/2)