Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 7e8d78e

Browse files
committed
Format pending payment message
1 parent d6b72a7 commit 7e8d78e

File tree

3 files changed

+51
-11
lines changed

3 files changed

+51
-11
lines changed

css/obBase.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ p {
9090
margin: 0 0 1em 0;
9191
}
9292

93+
p:last-child {
94+
margin-bottom: 0;
95+
}
96+
9397
hr {
9498
border: solid 1px rgba(255,255,255,0.08);
9599
width: 100%;
@@ -1295,35 +1299,42 @@ label.fieldItem {
12951299

12961300
/*========== typography ==========*/
12971301

1298-
h1,h2,h3,h4,h5,h6 {
1302+
h1,h2,h3,h4,h5,h6,
1303+
.h1,.h2,.h3,.h4,.h5,.h6 {
12991304
margin: 0;
13001305
font-weight: 700;
13011306
-webkit-user-select: none;
13021307
cursor: default;
13031308
}
13041309

1305-
h1,h2,h3 {
1310+
h1,h2,h3,
1311+
.h1,.h2,.h3 {
13061312
margin-bottom: 20px;
13071313
line-height: 1.2;
13081314
}
13091315

1310-
h4,h5,h6 {
1316+
h4,h5,h6
1317+
.h4,.h5,.h6 {
13111318
margin-bottom: 10px;
13121319
line-height: 1;
13131320
}
13141321

1315-
h3 {
1322+
h3, .h3 {
13161323
font-size: 18px;
13171324
}
13181325

1319-
h5 {
1320-
font-size: 15px;
1326+
h4, .h4 {
1327+
font-size: 17px;
13211328
}
13221329

1323-
.h6, h6 {
1330+
h5, .h5 {
13241331
font-size: 15px;
13251332
}
13261333

1334+
h6, .h6 {
1335+
font-size: 15px; /* TODO: refactor to remove h6 since it is identical to h5 */
1336+
}
1337+
13271338
.fieldItem-textarea h2, .fieldItem-textarea h3, .editableContent h2, .editableContent h3 {
13281339
margin-top: 30px;
13291340
}
@@ -5261,6 +5272,10 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
52615272
margin-left: 7px;
52625273
}
52635274

5275+
#ov1 .marginLeft8 {
5276+
margin-left: 8px; /* use this to match the gap on the right created by the custom scrollbar */
5277+
}
5278+
52645279
#ov1 .marginLeft10 {
52655280
margin-left: 10px;
52665281
}

js/languages/en-US.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,11 @@
519519
"UpdateInvalid": "Your transaction update returned invalid data. Open the transaction and try again",
520520
"ExportCSV": "Export to CSV",
521521
"ShowUnpaid": "Show Unfunded",
522-
"HideUnpaid": "Hide Unfunded"
522+
"HideUnpaid": "Hide Unfunded",
523+
"BuyerPaidMessage": "You have paid %{paidAmount} out of %{totalAmount} BTC",
524+
"BuyerPaidMessageHelp": "To complete your purchase, pay the remaining balance shown above.",
525+
"SellerPaidMessage": "The buyer has paid %{paidAmount} out of %{totalAmount} BTC",
526+
"SellerPaidMessageHelp": "This purchase can not be confirmed until the buyer has completely funded it."
523527
},
524528
"errorMessages": {
525529
"saveError": "Data could not be saved.",

js/templates/transactionModal.html

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,30 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
585585
<div style="height: 264px;" class="scrollOverflowY customThemeScrollbar">
586586

587587
<div class="flexRow custCol-border borderBottom">
588-
<% if(ob.status == 0 && ob.transactionType == "purchases"){ %>
589-
<div class="flexRow rowItem padding15">
590-
You have paid <%= ob.intlNumFormat(ob.orderPaid, 8) %> out of <%= ob.intlNumFormat(ob.orderPrice, 8) %>
588+
<% if(ob.status == 0){ %>
589+
<div class="rowItem padding15 rowTop10 custCol-secondary marginLeft8 txt-center">
590+
<div class="h4 width100">
591+
<i class="ion-alert-circled"></i>
592+
<% if(ob.transactionType == "purchases"){ %>
593+
<%= polyglot.t('transactions.BuyerPaidMessage', {
594+
paidAmount: ob.intlNumFormat(ob.orderPaid, 8),
595+
totalAmount: ob.intlNumFormat(ob.orderPrice, 8)
596+
}) %>
597+
<% } else { %>
598+
<%= polyglot.t('transactions.SellerPaidMessage', {
599+
paidAmount: ob.intlNumFormat(ob.orderPaid, 8),
600+
totalAmount: ob.intlNumFormat(ob.orderPrice, 8)
601+
}) %>
602+
<% } %>
603+
</div>
604+
<hr>
605+
<div class="txt-fade fontSize12 rowTop10">
606+
<% if(ob.transactionType == "purchases"){ %>
607+
<%= polyglot.t('transactions.BuyerPaidMessageHelp') %>
608+
<% } else { %>
609+
<%= polyglot.t('transactions.SellerPaidMessageHelp') %>
610+
<% } %>
611+
</div>
591612
</div>
592613
<% } %>
593614
<div class="flexRow rowItem padding15">

0 commit comments

Comments
 (0)