From 11c3078b55a54947026da5e148c8cf583c2b9a7e Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 9 Jul 2020 23:52:39 +0200 Subject: [PATCH] Style reimbursement list items --- app/components/contribution-list/template.hbs | 2 +- .../reimbursement-list/template.hbs | 30 ++++++---- app/helpers/contribution-status.js | 56 ------------------- app/helpers/item-status.js | 56 +++++++++++++++++++ app/helpers/sats-to-btc.js | 4 +- app/styles/_item-list.scss | 3 +- app/styles/app.scss | 3 +- app/styles/components/_contribution-list.scss | 2 - .../components/_reimbursement-list.scss | 52 +++++++++++++++++ .../dashboard/contributions/show.hbs | 2 +- public/img/bitcoin.svg | 7 +++ ...ion-status-test.js => item-status-test.js} | 4 +- 12 files changed, 145 insertions(+), 76 deletions(-) delete mode 100644 app/helpers/contribution-status.js create mode 100644 app/helpers/item-status.js create mode 100644 app/styles/components/_reimbursement-list.scss create mode 100644 public/img/bitcoin.svg rename tests/unit/helpers/{contribution-status-test.js => item-status-test.js} (84%) diff --git a/app/components/contribution-list/template.hbs b/app/components/contribution-list/template.hbs index aecc670..be603d0 100644 --- a/app/components/contribution-list/template.hbs +++ b/app/components/contribution-list/template.hbs @@ -33,7 +33,7 @@ {{#each this.contributionsFiltered as |contribution|}}
  • + class="{{item-status contribution}}{{if (eq contribution.id @selectedContributionId) " selected"}}">

    ({{contribution.kind}}) diff --git a/app/components/reimbursement-list/template.hbs b/app/components/reimbursement-list/template.hbs index 4c3fe9e..76ecb03 100644 --- a/app/components/reimbursement-list/template.hbs +++ b/app/components/reimbursement-list/template.hbs @@ -1,14 +1,24 @@ -