OwnedSymbols template before and after rivets

Created Diff never expires
10 removals
8 lines
14 additions
12 lines
<div class="col">{{name}}</div>
<ul id="symbol-list" class="list">
<div class="col stock-price">
<li class="item item-icon-right row" rv-each-model="collection" rv-on-click="onItemClick | preventDefault">
{{formatCurrency latestPrice}}
<div class="col">{{model:name}}</div>
</div>
<div class="col stock-price">
<div class="col stock-variation {{ifThen (isNegative latestVariation) 'negative-value'}}">
{{model:latestPrice | formatCurrency}}
<i class="ion-arrow-{{ifThen (isNegative latestVariation) 'down' 'up'}}-a"></i> {{suffix (formatFloat (absolute latestVariation)) '%'}}
</div>
</div>
<div class="col stock-variation" rv-class-negative-value="model:latestVariation | lt 0">
<i class="icon ion-chevron-right icon-accessory"></i>
<i rv-class="model:latestVariation | lt 0 | ifThen 'ion-arrow-down-a' 'ion-arrow-up-a'"></i> {{model:latestVariation | absolute | formatFloat | suffix '%'}}
</div>
<i class="icon ion-chevron-right icon-accessory"></i>
</li>
</ul>