Feature #15900 » 15900.diff
| app/models/issue.rb (working copy) | ||
|---|---|---|
| 1093 | 1093 |
s << ' child' if child? |
| 1094 | 1094 |
s << ' parent' unless leaf? |
| 1095 | 1095 |
s << ' private' if is_private? |
| 1096 |
s << ' has_attachments' unless attachments == [] |
|
| 1096 | 1097 |
if user.logged? |
| 1097 | 1098 |
s << ' created-by-me' if author_id == user.id |
| 1098 | 1099 |
s << ' assigned-to-me' if assigned_to_id == user.id |
| public/stylesheets/application.css (working copy) | ||
|---|---|---|
| 154 | 154 |
tr.issue td.relations { text-align: left; }
|
| 155 | 155 |
tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
|
| 156 | 156 |
tr.issue td.relations span {white-space: nowrap;}
|
| 157 |
tr.issue.has_attachments td.subject {padding-left: 18px; background: url(../images/attachment.png) no-repeat 0 50%;}
|
|
| 157 | 158 |
table.issues td.description {color:#777; font-size:90%; padding:4px 4px 4px 24px; text-align:left; white-space:normal;}
|
| 158 | 159 |
table.issues td.description pre {white-space:normal;}
|
| test/unit/issue_test.rb (working copy) | ||
|---|---|---|
| 2279 | 2279 |
assert_include 'assigned-to-me', issue2.css_classes(user) |
| 2280 | 2280 |
end |
| 2281 |
def test_css_classes_should_include_attachments |
|
| 2282 |
set_tmp_attachments_directory |
|
| 2283 |
issue = Issue.generate! |
|
| 2284 |
assert_not_include 'has_attachments', issue.css_classes.split(' ')
|
|
| 2285 |
issue.save_attachments({
|
|
| 2286 |
'1' => {'file' => mock_file_with_options(:original_filename => 'foo')}
|
|
| 2287 |
}) |
|
| 2288 |
issue.attach_saved_attachments |
|
| 2289 |
assert_include 'has_attachments', issue.css_classes.split(' ')
|
|
| 2290 |
end |
|
| 2291 | ||
| 2281 | 2292 |
def test_save_attachments_with_hash_should_save_attachments_in_keys_order |
| 2282 | 2293 |
set_tmp_attachments_directory |
| 2283 | 2294 |
issue = Issue.generate! |