Fix template linting errors
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder="0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4"
|
placeholder="0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4"
|
||||||
value=account
|
value=account
|
||||||
class=(if isValidAccount 'valid' '')}}
|
class=(if isValidAccount "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<select required onchange={{action (mut kind) value="target.value"}}>
|
<select required onchange={{action (mut kind) value="target.value"}}>
|
||||||
@@ -26,39 +26,39 @@
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder="Name"
|
placeholder="Name"
|
||||||
value=name
|
value=name
|
||||||
class=(if isValidName 'valid' '')}}
|
class=(if isValidName "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input name="url"
|
{{input name="url"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="URL"
|
placeholder="URL"
|
||||||
value=url
|
value=url
|
||||||
class=(if isValidURL 'valid' '')}}
|
class=(if isValidURL "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input name="github_uid"
|
{{input name="github_uid"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="GitHub UID (123)"
|
placeholder="GitHub UID (123)"
|
||||||
value=github_uid
|
value=github_uid
|
||||||
class=(if isValidGithubUID 'valid' '')}}
|
class=(if isValidGithubUID "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input name="github_username"
|
{{input name="github_username"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="GitHub username"
|
placeholder="GitHub username"
|
||||||
value=github_username
|
value=github_username
|
||||||
class=(if isValidGithubUsername 'valid' '')}}
|
class=(if isValidGithubUsername "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input name="wiki_username"
|
{{input name="wiki_username"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Wiki Username"
|
placeholder="Wiki Username"
|
||||||
value=wiki_username
|
value=wiki_username
|
||||||
class=(if isValidWikiUsername 'valid' '')}}
|
class=(if isValidWikiUsername "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p class="actions">
|
<p class="actions">
|
||||||
{{input type="submit"
|
{{input type="submit"
|
||||||
disabled=(is-pending inProgress)
|
disabled=(is-pending inProgress)
|
||||||
value=(if (is-pending inProgress) 'Processing' 'Save')}}
|
value=(if (is-pending inProgress) "Processing" "Save")}}
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
{{input type="text"
|
{{input type="text"
|
||||||
placeholder="100"
|
placeholder="100"
|
||||||
value=amount
|
value=amount
|
||||||
class=(if isValidAmount 'valid' '')}}
|
class=(if isValidAmount "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input type="text"
|
{{input type="text"
|
||||||
placeholder="Description"
|
placeholder="Description"
|
||||||
value=description
|
value=description
|
||||||
class=(if isValidDescription 'valid' '')}}
|
class=(if isValidDescription "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{input type="text"
|
{{input type="text"
|
||||||
placeholder="URL (optional)"
|
placeholder="URL (optional)"
|
||||||
value=url
|
value=url
|
||||||
class=(if isValidUrl 'valid' '')}}
|
class=(if isValidUrl "valid" "")}}
|
||||||
</p>
|
</p>
|
||||||
<p class="actions">
|
<p class="actions">
|
||||||
{{input type="submit"
|
{{input type="submit"
|
||||||
disabled=(is-pending inProgress)
|
disabled=(is-pending inProgress)
|
||||||
value=(if (is-pending inProgress) 'Processing' 'Save')}}
|
value=(if (is-pending inProgress) "Processing" "Save")}}
|
||||||
{{#link-to 'index'}}Back{{/link-to}}
|
{{#link-to "index"}}Back{{/link-to}}
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="chart">
|
<div class="chart">
|
||||||
{{ember-chart type='doughnut'
|
{{ember-chart type="doughnut"
|
||||||
data=chartData
|
data=chartData
|
||||||
options=chartOptions
|
options=chartOptions
|
||||||
width=200
|
width=200
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{{#each contributors as |contributor|}}
|
{{#each contributors as |contributor|}}
|
||||||
<tr class="{{if contributor.isCurrentUser 'current-user'}}" {{action "toggleContributorInfo" contributor}}>
|
<tr role="button" class={{if contributor.isCurrentUser "current-user"}} {{action "toggleContributorInfo" contributor}}>
|
||||||
<td class="person">
|
<td class="person">
|
||||||
<img class="avatar" src={{contributor.avatarURL}}>
|
<img class="avatar" src={{contributor.avatarURL}} alt="">
|
||||||
{{contributor.name}}
|
{{contributor.name}}
|
||||||
</td>
|
</td>
|
||||||
<td class="kredits">
|
<td class="kredits">
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<span class="symbol">₭S</span>
|
<span class="symbol">₭S</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="metadata {{if contributor.isCurrentUser 'current-user'}} {{if contributor.showMetadata 'visible'}}">
|
<tr class="metadata {{if contributor.isCurrentUser "current-user"}} {{if contributor.showMetadata "visible"}}">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://testnet.etherscan.io/address/{{contributor.account}}">Inspect Ethereum transactions</a></li>
|
<li><a href="https://testnet.etherscan.io/address/{{contributor.account}}">Inspect Ethereum transactions</a></li>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
{{!-- TODO: We need a better naming --}}
|
{{!-- TODO: We need a better naming --}}
|
||||||
{{#if kredits.hasAccounts}}
|
{{#if kredits.hasAccounts}}
|
||||||
<p class="actions">
|
<p class="actions">
|
||||||
{{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
|
{{#link-to "proposals.new"}}Create new proposal{{/link-to}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{#if kredits.currentUser.isCore}}
|
{{#if kredits.currentUser.isCore}}
|
||||||
{{add-contributor contributors=contributors save=(action 'save')}}
|
{{add-contributor contributors=contributors save=(action "save")}}
|
||||||
{{else}}
|
{{else}}
|
||||||
Only core team members can add new contributors. Please ask someone to set you up.
|
Only core team members can add new contributors. Please ask someone to set you up.
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{add-proposal contributors=minedContributors save=(action 'save')}}
|
{{add-proposal contributors=minedContributors save=(action "save")}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user