DEV: fixes linting of hbs files in core plugins (#10820)

This commit is contained in:
Joffrey JAFFEUX 2020-10-05 14:42:36 +02:00 committed by GitHub
parent cf44cdb082
commit e6821fbaae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 17 deletions

View File

@ -4,23 +4,23 @@
style="overflow: auto"}} style="overflow: auto"}}
<div class="form"> <div class="form">
{{#unless isValid}} {{#if isValid}}
<div class="validation-error alert alert-error">
{{i18n "discourse_local_dates.create.form.invalid_date"}}
</div>
{{else}}
{{#if timezoneIsDifferentFromUserTimezone}} {{#if timezoneIsDifferentFromUserTimezone}}
<div class="preview alert alert-info"> <div class="preview alert alert-info">
<b>{{formatedCurrentUserTimezone}} </b>{{currentPreview}} <b>{{formatedCurrentUserTimezone}} </b>{{currentPreview}}
</div> </div>
{{/if}} {{/if}}
{{/unless}} {{else}}
<div class="validation-error alert alert-error">
{{i18n "discourse_local_dates.create.form.invalid_date"}}
</div>
{{/if}}
{{computeDate}} {{computeDate}}
<div class="date-time-configuration"> <div class="date-time-configuration">
<div class="inputs-panel"> <div class="inputs-panel">
<div class="date-time-control from {{if fromSelected 'is-selected'}} {{if fromFilled 'is-filled'}}"> <div class="date-time-control from {{if fromSelected "is-selected"}} {{if fromFilled "is-filled"}}">
{{d-icon "calendar-alt"}} {{d-icon "calendar-alt"}}
{{d-button {{d-button
id="from-date-time" id="from-date-time"
@ -29,7 +29,7 @@
class="date-time"}} class="date-time"}}
</div> </div>
<div class="date-time-control to {{if toSelected 'is-selected'}} {{if toFilled 'is-filled'}}"> <div class="date-time-control to {{if toSelected "is-selected"}} {{if toFilled "is-filled"}}">
{{d-icon "calendar-alt"}} {{d-icon "calendar-alt"}}
{{d-button {{d-button
action=(action "focusTo") action=(action "focusTo")
@ -61,12 +61,12 @@
{{/if}} {{/if}}
{{#if toSelected}} {{#if toSelected}}
{{#if toDate}} {{#if toDate}}
<div class="time-pickers"> <div class="time-pickers">
{{d-icon "far-clock"}} {{d-icon "far-clock"}}
{{input maxlength=5 placeholder="hh:mm" input=(action "setToTime") type="time" value=toTime class="time-picker"}} {{input maxlength=5 placeholder="hh:mm" input=(action "setToTime") type="time" value=toTime class="time-picker"}}
</div> </div>
{{/if}} {{/if}}
{{/if}} {{/if}}
</div> </div>
@ -102,7 +102,7 @@
<label>{{i18n "discourse_local_dates.create.form.format_title"}}</label> <label>{{i18n "discourse_local_dates.create.form.format_title"}}</label>
<p> <p>
{{i18n "discourse_local_dates.create.form.format_description"}} {{i18n "discourse_local_dates.create.form.format_description"}}
<a target="_blank" rel="noopener" href="https://momentjs.com/docs/#/parsing/string-format/"> <a target="_blank" href="https://momentjs.com/docs/#/parsing/string-format/" rel="noopener noreferrer">
{{d-icon "question-circle"}} {{d-icon "question-circle"}}
</a> </a>
</p> </p>

View File

@ -6,7 +6,7 @@
{{/each}} {{/each}}
</div> </div>
<span class="presence-text"> <span class="presence-text">
<span class="description">{{i18n 'presence.replying_to_topic' count=users.length}}</span>{{!-- (using comment to stop whitespace) <span class="description">{{i18n "presence.replying_to_topic" count=users.length}}</span>{{!-- (using comment to stop whitespace)
--}}<span class="wave"><span class="dot">.</span><span class="dot">.</span><span class="dot">.</span></span> --}}<span class="wave"><span class="dot">.</span><span class="dot">.</span><span class="dot">.</span></span>
</span> </span>
</div> </div>

View File

@ -3,6 +3,7 @@
style={{this.colorBackgroundStyle}} style={{this.colorBackgroundStyle}}
{{on "mouseover" @onMouseOver}} {{on "mouseover" @onMouseOver}}
{{on "mouseout" @onMouseOut}} {{on "mouseout" @onMouseOut}}
role="button"
> >
<span class="poll-breakdown-option-color" style={{this.colorPreviewStyle}}></span> <span class="poll-breakdown-option-color" style={{this.colorPreviewStyle}}></span>
@ -13,5 +14,5 @@
{{@option.votes}} {{@option.votes}}
{{/if}} {{/if}}
</span> </span>
<span class="poll-breakdown-option-text">{{{@option.html}}}</span> <span class="poll-breakdown-option-text">{{html-safe @option.html}}</span>
</li> </li>