mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
ecb42a3680
refs TryGhost/Team#3052 <!-- Leave the line below if you'd like GitHub Copilot to generate a summary from your commit --> <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 7173288</samp> This pull request adds new components and settings for the announcement bar feature, which allows the user to customize the content, background, and visibility of a banner that appears on the site.
18 lines
800 B
Handlebars
18 lines
800 B
Handlebars
<div class="gh-stack-item {{if (eq @index 0) "gh-setting-first" "gh-setting"}}">
|
|
<div class="flex-grow-1">
|
|
<label class="gh-setting-title gh-theme-setting-title" for="announcement-visibility">
|
|
Announcement visibility
|
|
</label>
|
|
|
|
<span class="gh-select">
|
|
<select class="ember-select" name="announcement-visibility" id="announcement-visibility" {{on "change" this.setVisibility}}>
|
|
{{#each this.options as |settingOption|}}
|
|
<option value={{settingOption.value}} selected={{eq settingOption.value this.background}}>
|
|
{{settingOption.label}}
|
|
</option>
|
|
{{/each}}
|
|
</select>
|
|
{{svg-jar "arrow-down-small"}}
|
|
</span>
|
|
</div>
|
|
</div> |