FIX: Don't show staff notes on user profile when disabled.

This commit is contained in:
Guo Xiang Tan 2016-07-29 11:50:19 +08:00
parent 3a920f06d0
commit 06c35cc41a
1 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,9 @@
{{#if currentUser.staff}} {{#if siteSettings.staff_notes_enabled}}
{{#if staffNotesCount}} {{#if currentUser.staff}}
<li><a {{action "showStaffNotes"}} href class="btn">{{fa-icon "pencil"}}{{i18n 'staff_notes.show' count=staffNotesCount}}</a></li> {{#if staffNotesCount}}
{{else}} <li><a {{action "showStaffNotes"}} href class="btn">{{fa-icon "pencil"}}{{i18n 'staff_notes.show' count=staffNotesCount}}</a></li>
<li><a {{action "showStaffNotes"}} href class="btn">{{fa-icon "pencil"}}{{i18n 'staff_notes.title'}}</a></li> {{else}}
<li><a {{action "showStaffNotes"}} href class="btn">{{fa-icon "pencil"}}{{i18n 'staff_notes.title'}}</a></li>
{{/if}}
{{/if}} {{/if}}
{{/if}} {{/if}}