mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
4cd2688c25
refs https://github.com/TryGhost/Team/issues/3112 - When members features are disabled on the site, there is no point to show member-specific filters for the announcement bar. The only option available should be to show or not to show the announcement.
71 lines
2.7 KiB
Handlebars
71 lines
2.7 KiB
Handlebars
<div class="gh-stack-item gh-setting-last">
|
|
<div class="flex-grow-1">
|
|
<label class="gh-setting-title gh-theme-setting-title" for="logged-out">
|
|
Visibility
|
|
</label>
|
|
|
|
<div class="form-group mt3 mb0 for-checkbox">
|
|
<label class="checkbox" for="logged-out">
|
|
<input
|
|
type="checkbox"
|
|
id="logged-out"
|
|
name="logged-out"
|
|
class="gh-input"
|
|
value={{this.visibilityOptions.visitors}}
|
|
checked={{this.isVisitorsChecked}}
|
|
{{on "click" this.updateVisibility}}
|
|
>
|
|
<span class="input-toggle-component"></span>
|
|
{{#if this.isMembersEnabled}}
|
|
<span>Logged out visitors</span>
|
|
{{else}}
|
|
<span>Show the announcement</span>
|
|
{{/if}}
|
|
</label>
|
|
|
|
{{#if this.isMembersEnabled}}
|
|
{{#if this.isPaidAvailable}}
|
|
<label class="checkbox" for="free">
|
|
<input
|
|
type="checkbox"
|
|
id="free"
|
|
name="free"
|
|
class="gh-input"
|
|
value={{this.visibilityOptions.freeMembers}}
|
|
checked={{this.isFreeMembersChecked}}
|
|
{{on "click" this.updateVisibility}}
|
|
>
|
|
<span class="input-toggle-component"></span>
|
|
<span>Free members</span>
|
|
</label>
|
|
<label class="checkbox" for="paid">
|
|
<input
|
|
type="checkbox"
|
|
id="paid"
|
|
name="paid"
|
|
class="gh-input"
|
|
value={{this.visibilityOptions.paidMembers}}
|
|
checked={{this.isPaidMembersChecked}}
|
|
{{on "click" this.updateVisibility}}
|
|
>
|
|
<span class="input-toggle-component"></span>
|
|
<span>Paid members</span>
|
|
</label>
|
|
{{else}}
|
|
<label class="checkbox">
|
|
<input
|
|
type="checkbox"
|
|
name="members"
|
|
class="gh-input"
|
|
value={{this.visibilityOptions.freeMembers}}
|
|
checked={{this.isFreeMembersChecked}}
|
|
{{on "click" this.updateVisibility}}
|
|
>
|
|
<span class="input-toggle-component"></span>
|
|
<span>Members</span>
|
|
</label>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div> |