mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 05:38:48 +01:00
Card Details, hr line occured twice if any date or any user isn't displayed
This commit is contained in:
parent
013620c862
commit
81e617a149
2 changed files with 30 additions and 13 deletions
|
|
@ -73,8 +73,10 @@ template(name="cardDetails")
|
||||||
a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
|
a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
|
||||||
i.fa.fa-plus
|
i.fa.fa-plus
|
||||||
|
|
||||||
if currentBoard.allowsReceivedDate
|
if currentBoard.hasAnyAllowsDate
|
||||||
hr
|
hr
|
||||||
|
|
||||||
|
if currentBoard.allowsReceivedDate
|
||||||
.card-details-item.card-details-item-received
|
.card-details-item.card-details-item-received
|
||||||
h3.card-details-item-title
|
h3.card-details-item-title
|
||||||
i.fa.fa-sign-out
|
i.fa.fa-sign-out
|
||||||
|
|
@ -126,7 +128,9 @@ template(name="cardDetails")
|
||||||
a.card-label.add-label.js-end-date
|
a.card-label.add-label.js-end-date
|
||||||
i.fa.fa-plus
|
i.fa.fa-plus
|
||||||
|
|
||||||
hr
|
if currentBoard.hasAnyAllowsUser
|
||||||
|
hr
|
||||||
|
|
||||||
if currentBoard.allowsCreator
|
if currentBoard.allowsCreator
|
||||||
.card-details-item.card-details-item-creator
|
.card-details-item.card-details-item-creator
|
||||||
h3.card-details-item-title
|
h3.card-details-item-title
|
||||||
|
|
@ -167,17 +171,6 @@ template(name="cardDetails")
|
||||||
a.assignee.add-assignee.card-details-item-add-button.js-add-assignees(title="{{_ 'assignee'}}")
|
a.assignee.add-assignee.card-details-item-add-button.js-add-assignees(title="{{_ 'assignee'}}")
|
||||||
i.fa.fa-plus
|
i.fa.fa-plus
|
||||||
|
|
||||||
//.card-details-items
|
|
||||||
if getSpentTime
|
|
||||||
.card-details-item.card-details-item-spent
|
|
||||||
if getIsOvertime
|
|
||||||
h3.card-details-item-title
|
|
||||||
| {{_ 'overtime-hours'}}
|
|
||||||
else
|
|
||||||
h3.card-details-item-title
|
|
||||||
| {{_ 'spent-time-hours'}}
|
|
||||||
+cardSpentTime
|
|
||||||
|
|
||||||
//.card-details-items
|
//.card-details-items
|
||||||
if currentBoard.allowsRequestedBy
|
if currentBoard.allowsRequestedBy
|
||||||
.card-details-item.card-details-item-name
|
.card-details-item.card-details-item-name
|
||||||
|
|
@ -219,6 +212,9 @@ template(name="cardDetails")
|
||||||
+viewer
|
+viewer
|
||||||
= getAssignedBy
|
= getAssignedBy
|
||||||
|
|
||||||
|
if $or currentBoard.allowsCardSortingByNumber getSpentTime
|
||||||
|
hr
|
||||||
|
|
||||||
if currentBoard.allowsCardSortingByNumber
|
if currentBoard.allowsCardSortingByNumber
|
||||||
.card-details-item.card-details-sort-order
|
.card-details-item.card-details-sort-order
|
||||||
h3.card-details-item-title
|
h3.card-details-item-title
|
||||||
|
|
@ -232,6 +228,17 @@ template(name="cardDetails")
|
||||||
+viewer
|
+viewer
|
||||||
= sort
|
= sort
|
||||||
|
|
||||||
|
//.card-details-items
|
||||||
|
if getSpentTime
|
||||||
|
.card-details-item.card-details-item-spent
|
||||||
|
if getIsOvertime
|
||||||
|
h3.card-details-item-title
|
||||||
|
| {{_ 'overtime-hours'}}
|
||||||
|
else
|
||||||
|
h3.card-details-item-title
|
||||||
|
| {{_ 'spent-time-hours'}}
|
||||||
|
+cardSpentTime
|
||||||
|
|
||||||
//.card-details-items
|
//.card-details-items
|
||||||
if customFieldsWD
|
if customFieldsWD
|
||||||
.material-toggle-switch(title="{{_ 'change'}} {{_ 'custom-fields'}} {{_ 'layout'}}")
|
.material-toggle-switch(title="{{_ 'change'}} {{_ 'custom-fields'}} {{_ 'layout'}}")
|
||||||
|
|
|
||||||
|
|
@ -865,6 +865,16 @@ Boards.helpers({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
hasAnyAllowsDate() {
|
||||||
|
const ret = this.allowsReceivedDate || this.allowsStartDate || this.allowsDueDate || this.allowsEndDate;
|
||||||
|
return ret;
|
||||||
|
},
|
||||||
|
|
||||||
|
hasAnyAllowsUser() {
|
||||||
|
const ret = this.allowsCreator || this.allowsMembers || this.allowsAssignee || this.allowsRequestedBy || this.allowsAssignedBy;
|
||||||
|
return ret;
|
||||||
|
},
|
||||||
|
|
||||||
absoluteUrl() {
|
absoluteUrl() {
|
||||||
return FlowRouter.url('board', { id: this._id, slug: this.slug });
|
return FlowRouter.url('board', { id: this._id, slug: this.slug });
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue