mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
This pr replaces `{{{ }}}` usage by a {{html-safe}} helper. While it doesn't solve the underlying issue, it gives us a path forward without risking breaking too much existing behavior.
Also introduces an htmlSafe computed macro:
```
import { htmlSafe } from "discourse/lib/computed";
htmlDescription: htmlSafe("description")
```
Overtime {{html-safe}} usage should be removed and moved to components properties or specialized components/helpers.
45 lines
1.4 KiB
Handlebars
45 lines
1.4 KiB
Handlebars
<div class="inner-wrapper">
|
|
{{plugin-outlet name="admin-customize-themes-list-item" connectorTagName='span' args=(hash theme=theme)}}
|
|
|
|
<div class="info">
|
|
<span class="name">
|
|
{{theme.name}}
|
|
</span>
|
|
|
|
<span class="icons">
|
|
{{#if theme.selected}}
|
|
{{d-icon "caret-right"}}
|
|
{{else}}
|
|
{{#if theme.default}}
|
|
{{d-icon "check" class="default-indicator" title="admin.customize.theme.default_theme_tooltip"}}
|
|
{{/if}}
|
|
{{#if theme.isPendingUpdates}}
|
|
{{d-icon "sync" title="admin.customize.theme.updates_available_tooltip" class="light-grey-icon"}}
|
|
{{/if}}
|
|
{{#if theme.isBroken}}
|
|
{{d-icon "exclamation-circle" class="broken-indicator" title="admin.customize.theme.broken_theme_tooltip"}}
|
|
{{/if}}
|
|
{{#unless theme.enabled}}
|
|
{{d-icon "ban" class="light-grey-icon" title="admin.customize.theme.disabled_component_tooltip"}}
|
|
{{/unless}}
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
|
|
{{#if displayComponents}}
|
|
<div class="components-list">
|
|
<span class="components">{{html-safe childrenString}}</span>
|
|
|
|
{{#if displayHasMore}}
|
|
<a href {{action "toggleChildrenExpanded"}} class="others-count">
|
|
{{#if childrenExpanded}}
|
|
{{i18n "admin.customize.theme.collapse"}}
|
|
{{else}}
|
|
{{i18n "admin.customize.theme.and_x_more" count=moreCount}}
|
|
{{/if}}
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|