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"}}
<div class="form">
{{#unless isValid}}
<div class="validation-error alert alert-error">
{{i18n "discourse_local_dates.create.form.invalid_date"}}
</div>
{{else}}
{{#if isValid}}
{{#if timezoneIsDifferentFromUserTimezone}}
<div class="preview alert alert-info">
<b>{{formatedCurrentUserTimezone}} </b>{{currentPreview}}
</div>
{{/if}}
{{/unless}}
{{else}}
<div class="validation-error alert alert-error">
{{i18n "discourse_local_dates.create.form.invalid_date"}}
</div>
{{/if}}
{{computeDate}}
<div class="date-time-configuration">
<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-button
id="from-date-time"
@ -29,7 +29,7 @@
class="date-time"}}
</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-button
action=(action "focusTo")
@ -61,12 +61,12 @@
{{/if}}
{{#if toSelected}}
{{#if toDate}}
<div class="time-pickers">
{{d-icon "far-clock"}}
{{input maxlength=5 placeholder="hh:mm" input=(action "setToTime") type="time" value=toTime class="time-picker"}}
</div>
{{/if}}
{{#if toDate}}
<div class="time-pickers">
{{d-icon "far-clock"}}
{{input maxlength=5 placeholder="hh:mm" input=(action "setToTime") type="time" value=toTime class="time-picker"}}
</div>
{{/if}}
{{/if}}
</div>
@ -102,7 +102,7 @@
<label>{{i18n "discourse_local_dates.create.form.format_title"}}</label>
<p>
{{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"}}
</a>
</p>

View File

@ -6,7 +6,7 @@
{{/each}}
</div>
<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>
</div>

View File

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