pinned icon

This commit is contained in:
Yuri Kuznetsov
2024-05-07 23:04:48 +03:00
parent f9270a20d4
commit b026ff8066
7 changed files with 26 additions and 0 deletions
@@ -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,
};
}
+3
View File
@@ -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;
}
+10
View File
@@ -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;
}