diff --git a/assets/javascripts/discourse-staff-notes/templates/connectors/user-profile-controls/show-notes-on-profile.hbs b/assets/javascripts/discourse-staff-notes/templates/connectors/user-profile-controls/show-notes-on-profile.hbs index a40247d..14c0efe 100644 --- a/assets/javascripts/discourse-staff-notes/templates/connectors/user-profile-controls/show-notes-on-profile.hbs +++ b/assets/javascripts/discourse-staff-notes/templates/connectors/user-profile-controls/show-notes-on-profile.hbs @@ -1,7 +1,9 @@ -{{#if currentUser.staff}} - {{#if staffNotesCount}} -
  • {{fa-icon "pencil"}}{{i18n 'staff_notes.show' count=staffNotesCount}}
  • - {{else}} -
  • {{fa-icon "pencil"}}{{i18n 'staff_notes.title'}}
  • +{{#if siteSettings.staff_notes_enabled}} + {{#if currentUser.staff}} + {{#if staffNotesCount}} +
  • {{fa-icon "pencil"}}{{i18n 'staff_notes.show' count=staffNotesCount}}
  • + {{else}} +
  • {{fa-icon "pencil"}}{{i18n 'staff_notes.title'}}
  • + {{/if}} {{/if}} {{/if}}