Feature #44441 » 0001-Show-the-assignee-avatar-next-to-the-name-on-the-iss.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
| 921 | 921 |
div.issue .attributes .attribute {padding-inline-start: 180px; clear: inline-start; min-block-size: 1.8em;}
|
| 922 | 922 |
div.issue .attributes .attribute .label {inline-size: 170px; margin-inline-start: -180px; font-weight: bold; float: inline-start; overflow: clip visible; text-overflow: ellipsis;}
|
| 923 | 923 |
div.issue .attribute .value {overflow:auto; text-overflow: ellipsis;}
|
| 924 |
div.issue .attribute .value .avatar {float: none; margin-block: 0; margin-inline: 0 4px;}
|
|
| 924 | 925 |
div.issue .attribute.string_cf .value .wiki p {margin-block: 0;}
|
| 925 | 926 |
div.issue .attribute.text_cf .value .wiki p:first-of-type {margin-block-start: 0;}
|
| 926 | 927 |
div.issue.overdue .due-date .value { color: var(--oc-red-9); }
|
| app/views/issues/show.html.erb | ||
|---|---|---|
| 78 | 78 |
rows.left l(:field_priority), @issue.priority.name, :class => 'priority' |
| 79 | 79 |
end |
| 80 | 80 |
unless @issue.disabled_core_fields.include?('assigned_to_id')
|
| 81 |
rows.left l(:field_assigned_to), (@issue.assigned_to ? link_to_principal(@issue.assigned_to) : "-"), :class => 'assigned-to'
|
|
| 81 |
rows.left l(:field_assigned_to), (@issue.assigned_to ? safe_join([avatar(@issue.assigned_to, :size => "16"), link_to_principal(@issue.assigned_to)]) : "-"), :class => 'assigned-to'
|
|
| 82 | 82 |
end |
| 83 | 83 |
unless @issue.disabled_core_fields.include?('category_id') || (@issue.category.nil? && @issue.project.issue_categories.none?)
|
| 84 | 84 |
rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category' |
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 2820 | 2820 |
end |
| 2821 | 2821 |
end |
| 2822 |
def test_show_should_display_avatar_of_the_assigned_user |
|
| 2823 |
get(:show, :params => {:id => 2})
|
|
| 2824 |
assert_response :success |
|
| 2825 |
assert_select '.assigned-to .value' do |
|
| 2826 |
assert_select '.avatar.s16 + a[href="/users/3"]' |
|
| 2827 |
end |
|
| 2828 |
end |
|
| 2829 | ||
| 2822 | 2830 |
def test_show_should_display_visible_changesets_from_other_projects |
| 2823 | 2831 |
project = Project.find(2) |
| 2824 | 2832 |
issue = project.issues.first |
- « Previous
- 1
- 2
- Next »