discourse/app/assets/javascripts/admin/addon/templates/customize.hbs
Krzysztof Kotlarek df373d90fe
FEATURE: direct link to components for admin sidebar (#26644)
To add a components link to the sidebar refactoring was required to create unique URLs for themes and components. Before the query param was used. After changes, we have two URLs `/admin/customize/themes` and `/admin/customize/components`.
2024-04-17 11:45:59 +10:00

68 lines
1.9 KiB
Handlebars

{{#unless this.currentUser.use_admin_sidebar}}
<AdminNav>
{{#if this.currentUser.admin}}
<NavItem
@route="adminCustomizeThemes"
@routeParam="themes"
@label="admin.customize.theme.title"
class="admin-customize-themes"
/>
<NavItem
@route="adminCustomize.colors"
@label="admin.customize.colors.title"
class="admin-customize-colors"
/>
<NavItem
@route="adminSiteText"
@label="admin.site_text.title"
class="admin-customize-site-text"
/>
<NavItem
@route="adminCustomizeEmailTemplates"
@label="admin.customize.email_templates.title"
class="admin-customize-email-templates"
/>
<NavItem
@route="adminCustomizeEmailStyle"
@label="admin.customize.email_style.title"
class="admin-customize-email-styles"
/>
<NavItem
@route="adminUserFields"
@label="admin.user_fields.title"
class="admin-customize-user-fields"
/>
<NavItem
@route="adminEmojis"
@label="admin.emoji.title"
class="admin-customize-emojis"
/>
<NavItem
@route="adminPermalinks"
@label="admin.permalink.title"
class="admin-customize-permalinks"
/>
<NavItem
@route="adminEmbedding"
@label="admin.embedding.title"
class="admin-customize-embedding"
/>
{{#if this.siteSettings.experimental_form_templates}}
<NavItem
@route="adminCustomizeFormTemplates"
@label="admin.form_templates.nav_title"
class="admin-customize-form-templates"
/>
{{/if}}
{{/if}}
<NavItem
@route="adminWatchedWords"
@label="admin.watched_words.title"
class="admin-customize-watched-words"
/>
</AdminNav>
{{/unless}}
<div class="admin-container">
{{outlet}}
</div>