Skip to content

Commit 828ea42

Browse files
committed
remove more bind-attr usage
1 parent 0e6779b commit 828ea42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/templates/crate/index.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
<span class='desc small'>Downloads all time</span>
193193
</div>
194194
<div class='stat'>
195-
<span {{bind-attr class="crate.versions.isPending:loading :num"}}>
195+
<span class="{{if crate.versions.isPending 'loading'}} num">
196196
<img src="/assets/package.png"/>
197197
{{ model.versions.length }}
198198
</span>
@@ -204,7 +204,7 @@
204204
<span class='small'>Showing stats for</span>
205205
<div class='button-holder'>
206206
<button {{action 'toggleVersions'}}
207-
{{bind-attr class="showAllVersions:active :tan-button :dropdown"}}>
207+
class="{{if showAllVersions 'active'}} dropdown">
208208
{{#if requestedVersion}}
209209
{{ requestedVersion }}
210210
{{else}}
@@ -213,7 +213,7 @@
213213
<span class='arrow'></span>
214214
</button>
215215

216-
<ul id='all-versions' {{bind-attr class="showAllVersions:open :dropdown"}}>
216+
<ul id='all-versions' class="{{if showAllVersions 'open'}} dropdown">
217217
<li class='all'>
218218
{{#link-to 'crate.index' this}}All Versions{{/link-to}}
219219
</li>

0 commit comments

Comments
 (0)