diff --git a/assets/javascripts/discourse-user-notes/templates/connectors/after-reviewable-post-user/show-user-notes-on-flags.hbs b/assets/javascripts/discourse-user-notes/templates/connectors/after-reviewable-post-user/show-user-notes-on-flags.hbs index d7fb5e4..69f5900 100644 --- a/assets/javascripts/discourse-user-notes/templates/connectors/after-reviewable-post-user/show-user-notes-on-flags.hbs +++ b/assets/javascripts/discourse-user-notes/templates/connectors/after-reviewable-post-user/show-user-notes-on-flags.hbs @@ -1,5 +1,5 @@ {{#if userNotesCount}} - + {{#if emojiEnabled}} pencil {{else}} diff --git a/assets/javascripts/discourse-user-notes/templates/connectors/user-card-post-names/show-user-notes-on-card.hbs b/assets/javascripts/discourse-user-notes/templates/connectors/user-card-post-names/show-user-notes-on-card.hbs index d7fb5e4..69f5900 100644 --- a/assets/javascripts/discourse-user-notes/templates/connectors/user-card-post-names/show-user-notes-on-card.hbs +++ b/assets/javascripts/discourse-user-notes/templates/connectors/user-card-post-names/show-user-notes-on-card.hbs @@ -1,5 +1,5 @@ {{#if userNotesCount}} - + {{#if emojiEnabled}} pencil {{else}} diff --git a/assets/javascripts/discourse/templates/components/show-user-notes.hbs b/assets/javascripts/discourse/templates/components/show-user-notes.hbs index a687ff3..1d68ffd 100644 --- a/assets/javascripts/discourse/templates/components/show-user-notes.hbs +++ b/assets/javascripts/discourse/templates/components/show-user-notes.hbs @@ -1,8 +1,8 @@ {{d-icon "pencil-alt"}} {{#if showCount}} - {{i18n 'user_notes.show' count=count}} + {{i18n "user_notes.show" count=count}} {{else}} - {{i18n 'user_notes.title'}} + {{i18n "user_notes.title"}} {{/if}} diff --git a/assets/javascripts/discourse/templates/modal/user-notes.hbs b/assets/javascripts/discourse/templates/modal/user-notes.hbs index b4ff9f0..69bf174 100644 --- a/assets/javascripts/discourse/templates/modal/user-notes.hbs +++ b/assets/javascripts/discourse/templates/modal/user-notes.hbs @@ -8,19 +8,19 @@ }} {{#each model as |n|}} -
-
+
+
{{#user-link user=n.created_by}} {{avatar n.created_by imageSize="small"}} {{/user-link}}
-
-
- {{n.created_by.username}} - +
+
+ {{n.created_by.username}} + {{#if n.can_delete}} - + {{d-button action=(action "removeNote" n) icon="far-trash-alt" class="btn-small btn-danger" @@ -30,7 +30,7 @@ {{/if}}
-
+
{{cook-text n.raw}}
@@ -41,7 +41,7 @@ {{/if}}
-
+
{{/each}} {{/d-modal-body}}