pinned icon
This commit is contained in:
@@ -46,5 +46,8 @@
|
||||
|
||||
<div class="stream-date-container">
|
||||
<a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
|
||||
{{#if isPinned}}
|
||||
<span class="fas fa-map-pin fa-sm pin-icon" title="{{translate 'Pinned' scope='Note'}}"></span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -46,5 +46,8 @@
|
||||
|
||||
<div class="stream-date-container">
|
||||
<a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
|
||||
{{#if isPinned}}
|
||||
<span class="fas fa-map-pin fa-sm pin-icon" title="{{translate 'Pinned' scope='Note'}}"></span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -33,4 +33,7 @@
|
||||
|
||||
<div class="stream-date-container">
|
||||
<a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
|
||||
{{#if isPinned}}
|
||||
<span class="fas fa-map-pin fa-sm pin-icon" title="{{translate 'Pinned' scope='Note'}}"></span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
@@ -42,6 +42,8 @@ class EmailReceivedNoteStreamView extends NoteStreamView {
|
||||
hasPost: this.hasPost,
|
||||
hasAttachments: this.hasAttachments,
|
||||
emailIconClassName: this.getMetadata().get(['clientDefs', 'Email', 'iconClass']) || '',
|
||||
isPinned: this.isThis && this.model.get('isPinned') && this.model.collection &&
|
||||
!this.model.collection.pinnedList,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@ class EmailSentNoteStreamView extends NoteStreamView {
|
||||
hasPost: this.hasPost,
|
||||
hasAttachments: this.hasAttachments,
|
||||
emailIconClassName: this.getMetadata().get(['clientDefs', 'Email', 'iconClass']) || '',
|
||||
isPinned: this.isThis && this.model.get('isPinned') && this.model.collection &&
|
||||
!this.model.collection.pinnedList,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,9 @@ class PostNoteStreamView extends NoteStreamView {
|
||||
data.showPost = !!this.model.get('post');
|
||||
data.isInternal = this.isInternal;
|
||||
|
||||
data.isPinned = this.isThis && this.model.get('isPinned') && this.model.collection &&
|
||||
!this.model.collection.pinnedList;
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
@@ -1992,6 +1992,16 @@ td > span.color-icon {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.stream-date-container {
|
||||
.pin-icon {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
color: var(--text-muted-color);
|
||||
}
|
||||
}
|
||||
|
||||
.stream-head-container {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user