mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
no issue We were in a part-way state where some touched files had been (sometimes partially) migrated to explicit `this`. The codemod that was available has now fixed the formatting issues it had so it was a good time to run it. https://github.com/ember-codemods/ember-no-implicit-this-codemod - part of the migration path for https://github.com/emberjs/rfcs/pull/308 - starts to make template resolution rules more explicit - `<MyComponent />` - always a component - `{{my-component}}` - component or helper (components _must_ have a `-`. This style of component will go away once fully migrated to angle bracket components) - `{{value}}` - a helper or local template variable - `{{this.value}}` - reference to a property on the backing context (either a controller or a component JS file)
32 lines
1 KiB
Handlebars
32 lines
1 KiB
Handlebars
<a href="" class="theme-validation-toggle-details" {{action "toggleDetails"}} data-test-toggle-details>
|
|
<div class="theme-validation-type-label"></div>
|
|
<div class="flex items-center flex-auto">
|
|
<h4 class="theme-validation-rule-text">
|
|
{{{this.error.rule}}}
|
|
</h4>
|
|
<div class="theme-validation-rule-icon">
|
|
{{#if this.showDetails}}
|
|
{{svg-jar "arrow-down"}}
|
|
{{else}}
|
|
{{svg-jar "arrow-right"}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
{{#if this.showDetails}}
|
|
<p class="theme-validation-details">
|
|
{{{this.error.details}}}
|
|
</p>
|
|
{{#if this.error.failures}}
|
|
<div class="theme-validation-list">
|
|
<h6>Affected files:</h6>
|
|
<ul>
|
|
{{#each this.error.failures as |failure|}}
|
|
<li><code>{{failure.ref}}</code>{{#if failure.message}}: {{failure.message}}{{/if}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|