mirror of
https://github.com/wekan/wekan.git
synced 2026-03-06 05:40:16 +01:00
Link description
This commit is contained in:
parent
5644ef66af
commit
64367a01dd
7 changed files with 50 additions and 19 deletions
|
|
@ -109,10 +109,10 @@ template(name="cardDetails")
|
|||
a.js-open-inlined-form {{_ 'view-it'}}
|
||||
= ' - '
|
||||
a.js-close-inlined-form {{_ 'discard'}}
|
||||
else if description
|
||||
else if getDescription
|
||||
h3.card-details-item-title {{_ 'description'}}
|
||||
+viewer
|
||||
= description
|
||||
= getDescription
|
||||
|
||||
.card-details-items
|
||||
.card-details-item.card-details-item-name
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
canModifyCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
return Meteor.user() && Meteor.user().isBoardMember() &&
|
||||
!Meteor.user().isCommentOnly() && !this.currentData().isImported();
|
||||
},
|
||||
|
||||
scrollParentContainer() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
template(name="minicard")
|
||||
.minicard(
|
||||
class="{{#if importedCard}}imported-card{{/if}}"
|
||||
class="{{#if importedBoard}}imported-board{{/if}}")
|
||||
class="{{#if isImportedCard}}imported-card{{/if}}"
|
||||
class="{{#if isImportedBoard}}imported-board{{/if}}")
|
||||
if cover
|
||||
.minicard-cover(style="background-image: url('{{cover.url}}');")
|
||||
if labels
|
||||
|
|
@ -15,7 +15,7 @@ template(name="minicard")
|
|||
if $eq 'prefix-with-parent' currentBoard.presentParentTask
|
||||
.parent-prefix
|
||||
| {{ parentCardName }}
|
||||
if imported
|
||||
if isImported
|
||||
span.imported-icon.fa.fa-share-alt
|
||||
+viewer
|
||||
| {{ title }}
|
||||
|
|
@ -67,8 +67,8 @@ template(name="minicard")
|
|||
.badge(title="{{_ 'card-comments-title' comments.count }}")
|
||||
span.badge-icon.fa.fa-comment-o.badge-comment
|
||||
span.badge-text= comments.count
|
||||
if description
|
||||
.badge.badge-state-image-only(title=description)
|
||||
if getDescription
|
||||
.badge.badge-state-image-only(title=getDescription)
|
||||
span.badge-icon.fa.fa-align-left
|
||||
if attachments.count
|
||||
.badge
|
||||
|
|
|
|||
|
|
@ -6,13 +6,4 @@ BlazeComponent.extendComponent({
|
|||
template() {
|
||||
return 'minicard';
|
||||
},
|
||||
importedCard() {
|
||||
return this.currentData().type === 'cardType-importedCard';
|
||||
},
|
||||
importedBoard() {
|
||||
return this.currentData().type === 'cardType-importedBoard';
|
||||
},
|
||||
imported() {
|
||||
return this.importedCard() || this.importedBoard();
|
||||
},
|
||||
}).register('minicard');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue