Feature #15900 » 15900.diff
| app/models/issue.rb (working copy) | ||
|---|---|---|
|
s << ' child' if child?
|
||
|
s << ' parent' unless leaf?
|
||
|
s << ' private' if is_private?
|
||
|
s << ' has_attachments' unless attachments == []
|
||
|
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 (working copy) | ||
|---|---|---|
|
tr.issue td.relations { text-align: left; }
|
||
|
tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
|
||
|
tr.issue td.relations span {white-space: nowrap;}
|
||
|
tr.issue.has_attachments td.subject {padding-left: 18px; background: url(../images/attachment.png) no-repeat 0 50%;}
|
||
|
table.issues td.description {color:#777; font-size:90%; padding:4px 4px 4px 24px; text-align:left; white-space:normal;}
|
||
|
table.issues td.description pre {white-space:normal;}
|
||
| test/unit/issue_test.rb (working copy) | ||
|---|---|---|
|
assert_include 'assigned-to-me', issue2.css_classes(user)
|
||
|
end
|
||
|
def test_css_classes_should_include_attachments
|
||
|
set_tmp_attachments_directory
|
||
|
issue = Issue.generate!
|
||
|
assert_not_include 'has_attachments', issue.css_classes.split(' ')
|
||
|
issue.save_attachments({
|
||
|
'1' => {'file' => mock_file_with_options(:original_filename => 'foo')}
|
||
|
})
|
||
|
issue.attach_saved_attachments
|
||
|
assert_include 'has_attachments', issue.css_classes.split(' ')
|
||
|
end
|
||
|
def test_save_attachments_with_hash_should_save_attachments_in_keys_order
|
||
|
set_tmp_attachments_directory
|
||
|
issue = Issue.generate!
|
||