This repository has been archived by the owner on Sep 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 495
[FIX] History: show price for orders (RT-1385) #2409
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,40 +5,58 @@ ul.effects(ng-show="entry.effects") | |
span.amount(rp-pretty-amount-high-precision="effect.gets") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.pays") | ||
| ( | ||
span(l10n-inc) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.invStraightPrice") {{effect.invStraightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.pays | rpcurrency }} | ||
| per | ||
span {{ effect.gets | rpcurrency }} | ||
| ). | ||
span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought | ||
span.amount(rp-pretty-amount-high-precision="effect.pays") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.gets") | ||
| ( | ||
span(l10n) price | ||
span : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.price") {{effect.price | rpamount:{abs_precision: 4} }} | ||
| ). | ||
| ( | ||
span(l10n) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.straightPrice") {{effect.straightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.gets | rpcurrency }} | ||
| per | ||
span {{ effect.pays | rpcurrency }} | ||
| ). | ||
span(l10n) This order has been filled. | ||
span(ng-switch-when="offer_partially_funded") | ||
span(ng-show="effect.sell", l10n, rp-span-spacing) You sold | ||
span.amount(rp-pretty-amount-high-precision="effect.got") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.paid") | ||
| ( | ||
span(l10n-inc) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.invStraightPrice") {{effect.invStraightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.paid | rpcurrency }} | ||
| per | ||
span {{ effect.got | rpcurrency }} | ||
| ). | ||
span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought | ||
span.amount(rp-pretty-amount-high-precision="effect.paid") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.got") | ||
| ( | ||
span(l10n) price | ||
span : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.price") {{effect.price | rpamount:{abs_precision: 4} }} | ||
| ). | ||
| ( | ||
span(l10n-inc) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.straightPrice") {{effect.straightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.got | rpcurrency }} | ||
| per | ||
span {{ effect.paid | rpcurrency }} | ||
| ). | ||
span(ng-show="effect.cancelled", l10n) The rest of your order has been cancelled due to lack of funds. | ||
span(ng-hide="effect.deleted", l10n, rp-span-spacing) This order has | ||
span(rp-pretty-amount-high-precision="effect.remaining") | ||
| remaining. | ||
//- We don't show this if it's an offer_cancel transaction. | ||
//- Instead we show it if the order has been cancelled because of luck of | ||
//- funds by some other non related transaction. | ||
span(ng-switch-when="offer_cancelled", l10n) Order ( | ||
span(ng-switch-when="offer_cancelled", l10n, rp-span-spacing) Order ( | ||
span.amount(rp-pretty-amount-high-precision="effect.pays") | ||
| for  | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.gets") | ||
| ) has been cancelled due to lack of funds. | ||
span(ng-switch-when="offer_created") | ||
|
@@ -50,16 +68,29 @@ ul.effects(ng-show="entry.effects") | |
span.amount(rp-pretty-amount-high-precision="effect.pays") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.pays") | ||
span(ng-switch-when="offer_bought", l10n, rp-span-spacing) You bought | ||
span.amount(rp-pretty-amount-high-precision="effect.got") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.paid") | ||
| ( | ||
span(l10n-inc) price | ||
span : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.price") {{effect.price | rpamount:{abs_precision: 6} }} | ||
| ). | ||
|
||
span(ng-switch-when="offer_bought",) | ||
span(ng-hide="entry.transaction.sell", l10n, rp-span-spacing) You bought | ||
span.amount(rp-pretty-amount-high-precision="effect.got") | ||
| for | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be localized although nested twice in the |
||
span.amount(rp-pretty-amount-high-precision="effect.paid") | ||
| ( | ||
span(l10n-inc) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.invStraightPrice") {{effect.invStraightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.paid | rpcurrency }} | ||
| per | ||
span {{ effect.got | rpcurrency }} | ||
| ). | ||
span(ng-show="entry.transaction.sell", l10n, rp-span-spacing) You sold | ||
span.amount(rp-pretty-amount-high-precision="effect.paid") | ||
| for | ||
span.amount(rp-pretty-amount-high-precision="effect.got") | ||
| ( | ||
span(l10n-inc) price : | ||
strong(rp-address-popover, rp-address-popover-sum="effect.straightPrice") {{effect.straightPrice | rpamount:{abs_precision: 6} }} | ||
span {{ effect.got | rpcurrency }} | ||
| per | ||
span {{ effect.paid | rpcurrency }} | ||
| ). | ||
span(ng-switch-when="trust_create_local", l10n) You have now connected to the gateway  | ||
span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty") | ||
span(l10n-inc)  for  | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var g = effect.got ? effect.got : effect.gets
is the same as
var g = effect.got || effect.gets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I tend to forget that notation :)