[30135] Add work package id link to add modifiable clicks

https://community.openproject.com/wp/30135
pull/7267/head
Oliver Günther 6 years ago
parent b9baa6cd08
commit 8b41568616
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 5
      frontend/src/app/components/wp-card-view/wp-card-view.component.html
  2. 7
      frontend/src/app/components/wp-card-view/wp-card-view.component.sass

@ -49,6 +49,11 @@
<span [textContent]="wpTypeAttribute(wp)"
class="wp-card--type"
[ngClass]="typeHighlightingClass(wp)"></span>
<a uiSref="work-packages.show"
[uiParams]="{workPackageId: wp.id}"
class="wp-card--id">
#{{wp.id}}
</a>
<span [textContent]="wpSubject(wp)"
class="wp-card--subject"></span>
<wp-status-button *ngIf="showStatusButton"

@ -19,7 +19,7 @@
width: 100%
border: 1px solid var(--widget-box-block-border-color)
border-radius: 2px
padding: 10px 20px 10px 10px
padding: 10px 12px 10px 10px
margin-top: 10px
position: relative
box-shadow: 1px 1px 3px 0px lightgrey
@ -38,7 +38,7 @@
grid-auto-columns: auto 1fr auto
grid-auto-rows: auto auto auto
grid-row-gap: 10px
grid-template-areas: "type type type" "subject subject subject" "attributeTag avatar date"
grid-template-areas: "type type type" "subject subject subject" "attributeTag avatar idlink"
overflow: hidden
.wp-card--type
@ -51,6 +51,9 @@
.wp-card--assignee
grid-area: avatar
place-self: center left
.wp-card--id
text-align: right
grid-area: idlink
.wp-card--status
grid-area: attributeTag
max-width: 120px

Loading…
Cancel
Save