Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add assignee header style

Oliver Güntherc3450a9f27a5
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts
index e241a105153..a578311c2cb 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts
+++ b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts
@@ -27,6 +27,8 @@
//++
import {Component, Input} from "@angular/core";
import {UserResource} from "core-app/modules/hal/resources/user-resource";
+import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
+import {I18nService} from "core-app/modules/common/i18n/i18n.service";
@Component({
@@ -36,4 +38,12 @@ import {UserResource} from "core-app/modules/hal/resources/user-resource";
})
export class AssigneeBoardHeaderComponent {
@Input('resource') public user:UserResource;
+
+ text = {
+ assignee: this.I18n.t('js.work_packages.properties.assignee')
+ };
+
+ constructor(readonly pathHelper:PathHelperService,
+ readonly I18n:I18nService) {
+ }
}
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html
index 7f229d487c5..4008b8ee0e3 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html
+++ b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html
@@ -1,6 +1,11 @@
<div class="assignee-board-header" *ngIf="user">
<user-avatar *ngIf="user.id" [user]="user" data-class-list="avatar-mini"></user-avatar>
- <h2 [textContent]="user.name"
- class="editable-toolbar-title--fixed">
+ <h2 class="editable-toolbar-title--fixed">
+ <small [textContent]="text.assignee"></small>
+ <br/>
+ <a [href]="pathHelper.userPath(user.id)"
+ [textContent]="user.name"
+ target="_blank">
+ </a>
</h2>
</div>
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass
index aaa8b8d3897..d5eba82c0b7 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass
+++ b/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass
@@ -4,3 +4,6 @@
user-avatar
align-self: center
padding-right: 5px
+
+.editable-toolbar-title--fixed
+ line-height: 1 !important
\ No newline at end of file