Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(tabs): align text right for contentv in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosantini committed Mar 17, 2017
1 parent ee63aee commit e8db1a3
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 86 deletions.
32 changes: 16 additions & 16 deletions src/client/app/components/activity/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@

<table ng-show="$ctrl.activities.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Profit</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Balance</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Date/Time</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Profit</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Balance</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Date/Time</th>
</thead>

<tbody>
<tr ng-repeat="activity in $ctrl.activities">
<td class="pv1 pr1 bb b--black-20">{{ activity.id }}</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.type }}</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.instrument }}</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.units | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.price }}</td>
<td class="pv1 pr1 bb b--black-20"
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.id }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.type }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.instrument }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.units | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.price }}</td>
<td class="pv1 pr1 bb b--black-20 tr"
ng-class="activity.pl >= 0 ? 'highlight-green' : 'highlight-red'">
{{ activity.pl | number:4 }}
</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.accountBalance | number:2 }}</td>
<td class="pv1 pr1 bb b--black-20">{{ activity.time | date:"MMM d, HH:mm" }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.accountBalance | number:2 }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ activity.time | date:"MMM d, HH:mm" }}</td>
</tr>
</tbody>
</table>
Expand Down
12 changes: 6 additions & 6 deletions src/client/app/components/exposure/exposure.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

<table ng-show="$ctrl.exposures.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Units</th>
</thead>

<tbody>
<tr ng-repeat="exposure in $ctrl.exposures">
<td class="pv1 pr1 bb b--black-20">{{ exposure.type }}</td>
<td class="pv1 pr1 bb b--black-20">{{ exposure.market }}</td>
<td class="pv1 pr1 bb b--black-20">{{ exposure.units | number:0 }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ exposure.type }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ exposure.market }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ exposure.units | number:0 }}</td>
</tr>
</tbody>
</table>
Expand Down
28 changes: 14 additions & 14 deletions src/client/app/components/news/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

<table ng-show="$ctrl.news.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Date/Time</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Event</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Previous</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Forecast</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Actual</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Unit</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Date/Time</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Event</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Previous</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Forecast</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Actual</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Unit</th>
</thead>

<tbody>
<tr ng-repeat="news in $ctrl.news">
<td class="pv1 pr1 bb b--black-20">{{ news.timestamp | date:"MMM d, HH:mm" }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.currency }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.title }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.previous | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.forecast | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.actual | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ news.unit }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.timestamp | date:"MMM d, HH:mm" }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.currency }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.title }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.previous | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.forecast | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.actual | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ news.unit }}</td>
</tr>
</tbody>
</table>
Expand Down
44 changes: 22 additions & 22 deletions src/client/app/components/orders/orders.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@

<table ng-show="$ctrl.orders.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">S/L</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">T/P</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">T/S</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Current</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Distance</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Expiry</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">S/L</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">T/P</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">T/S</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Current</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Distance</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Expiry</th>
</thead>

<tbody>
<tr ng-repeat="order in $ctrl.orders">
<td class="pv1 pr1 bb b--black-20">{{ order.side }}</td>
<td class="pv1 pr1 bb b--black-20">
<td class="pv1 pr1 bb b--black-20 tr">{{ order.side }}</td>
<td class="pv1 pr1 bb b--black-20 tr">
<a href ng-click="$ctrl.closeOrder(order.id)">{{ order.id }}</a>
</td>
<td class="pv1 pr1 bb b--black-20">{{ order.instrument }}</td>
<td class="pv1 pr1 bb b--black-20">{{ order.units | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ order.stopLossOnFill.price || order.type }}</td>
<td class="pv1 pr1 bb b--black-20">{{ order.takeProfitOnFill.price }}</td>
<td class="pv1 pr1 bb b--black-20">{{ order.trailingStopLossOnFill.distance || order.trailingStopValue }}</td>
<td class="pv1 pr1 bb b--black-20">{{ order.price | number:4 }}</td>
<td class="pv1 pr1 bb b--black-20"">{{ order.current | number:4 }}</td>
<td class="pv1 pr1 bb b--black-20"">{{ order.distance | number:1 }}</td>
<td class="pv1 pr1 bb b--black-20"">{{ order.expiry | date:"MMM d, HH:mm" }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.instrument }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.units | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.stopLossOnFill.price || order.type }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.takeProfitOnFill.price }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.trailingStopLossOnFill.distance || order.trailingStopValue }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.price | number:4 }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.current | number:4 }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.distance | number:1 }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ order.expiry | date:"MMM d, HH:mm" }}</td>
</tr>
</tbody>
</table>
Expand Down
16 changes: 8 additions & 8 deletions src/client/app/components/positions/positions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

<table ng-show="$ctrl.positions.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Avg. Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Avg. Price</th>
</thead>

<tbody>
<tr ng-repeat="position in $ctrl.positions">
<td class="pv1 pr1 bb b--black-20">{{ position.side }}</td>
<td class="pv1 pr1 bb b--black-20">{{ position.instrument }}</td>
<td class="pv1 pr1 bb b--black-20">{{ position.units | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ position.avgPrice }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ position.side }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ position.instrument }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ position.units | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ position.avgPrice }}</td>
</tr>
</tbody>
</table>
Expand Down
40 changes: 20 additions & 20 deletions src/client/app/components/trades/trades.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@

<table ng-show="$ctrl.trades.length" class="f6 w-100 mw8 center" cellpsacing="0">
<thead>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">S/L</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">T/P</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">T/S</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Current</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white">Profit (PIPS)</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Type</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Ticket</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Market</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Units</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">S/L</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">T/P</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">T/S</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Price</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Current</th>
<th class="fw6 bb b--black-20 tl pb1 pr1 bg-white tr">Profit (PIPS)</th>
</thead>

<tbody>
<tr ng-repeat="trade in $ctrl.trades">
<td class="pv1 pr1 bb b--black-20">{{ trade.side }}</td>
<td class="pv1 pr1 bb b--black-20">
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.side }}</td>
<td class="pv1 pr1 bb b--black-20 tr">
<a href ng-click="$ctrl.closeTrade(trade.id)">{{ trade.id }}</a>
</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.instrument }}</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.currentUnits | number }}</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.stopLossOrder.price }}</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.takeProfitOrder.price }}</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.trailingStopLossOrder.distance }}</td>
<td class="pv1 pr1 bb b--black-20">{{ trade.price }}</td>
<td class="pv1 pr1 bb b--black-20"">{{ trade.current }}</td>
<td class="pv1 pr1 bb b--black-20"
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.instrument }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.currentUnits | number }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.stopLossOrder.price }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.takeProfitOrder.price }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.trailingStopLossOrder.distance }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.price }}</td>
<td class="pv1 pr1 bb b--black-20 tr">{{ trade.current }}</td>
<td class="pv1 pr1 bb b--black-20 tr"
dual-color="trade.profitPips">
{{ trade.profitPips | number:1}}
</td>
Expand Down

0 comments on commit e8db1a3

Please sign in to comment.