- {{await kredits.totalSupply}} kredits issued and distributed among
- {{contributorsWithKredits.length}} contributors.
-
-
-
-
-{{#if proposalsOpen}}
-
+
-
Open Proposals
+
Contributors
- {{!-- TODO: We need a better naming for kredits.hasAccounts --}}
- {{proposal-list proposals=proposalsOpenSorted
- confirmProposal=(action "confirmProposal")
- contractInteractionEnabled=kredits.hasAccounts}}
+ {{contributor-list contributors=contributorsSorted}}
- {{!-- TODO: We need a better naming --}}
- {{#if kredits.hasAccounts}}
-
- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
-
+
+ {{await kredits.totalSupply}} kredits issued and distributed among
+ {{contributorsWithKredits.length}} contributors.
+
+
+
+
+
+ {{#if proposalsOpen}}
+
+
+
Unconfirmed Contributions
+
+
+ {{!-- TODO: We need a better naming for kredits.hasAccounts --}}
+ {{proposal-list proposals=proposalsOpenSorted
+ confirmProposal=(action "confirmProposal")
+ contractInteractionEnabled=kredits.hasAccounts}}
+
+ {{!-- TODO: We need a better naming --}}
+ {{#if kredits.hasAccounts}}
+
+ {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
+
+ {{/if}}
+
+
+ {{/if}}
+
+
+
+
Confirmed Contributions
+
+
+ {{proposal-list proposals=proposalsClosedSorted
+ confirmProposal=(action "confirmProposal")}}
+
+ {{!-- TODO: We need a better naming --}}
+ {{#if kredits.hasAccounts}}
+
+ {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
+
+ {{/if}}
+
+
+
+
+
+
+
Add Contributor
+
+
+
+ {{#if kredits.currentUser.isCore}}
+ {{add-contributor contributors=contributors save=(action 'save')}}
+ {{else}}
+ Only core team members can add new contributors. Please ask someone to set you up.
{{/if}}
-{{/if}}
-
-
-
Closed Proposals
-
-
- {{proposal-list proposals=proposalsClosedSorted
- confirmProposal=(action "confirmProposal")}}
-
- {{!-- TODO: We need a better naming --}}
- {{#if kredits.hasAccounts}}
-
- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
-
- {{/if}}
-
-
-
-
-
-
Add Contributor
-
-
-
- {{#if kredits.currentUser.isCore}}
- {{add-contributor contributors=contributors save=(action 'save')}}
- {{else}}
- Only core team members can add new contributors. Please ask someone to set you up.
- {{/if}}
-
-
+
From cf777571dc796a0335e75cdea158020163f8f6d7 Mon Sep 17 00:00:00 2001
From: Sebastian Kippe
Date: Sat, 16 Jun 2018 16:37:39 +0200
Subject: [PATCH 3/6] Move contribution info from title to actual content
---
app/components/proposal-list/template.hbs | 8 ++++----
app/styles/components/_proposal-list.scss | 6 +++++-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/app/components/proposal-list/template.hbs b/app/components/proposal-list/template.hbs
index 87bdbae..713b7f2 100644
--- a/app/components/proposal-list/template.hbs
+++ b/app/components/proposal-list/template.hbs
@@ -1,9 +1,9 @@
{{#each proposals as |proposal|}}
-
- ♥
+
+ ♥ ({{proposal.kind}})
+ {{proposal.contributor.name}}:
+ {{proposal.description}}{{proposal.amount}}₭S
- for {{proposal.contributor.name}}
- ({{proposal.votesCount}}/{{proposal.votesNeeded}} votes)
{{#unless proposal.isExecuted}}
diff --git a/app/styles/components/_proposal-list.scss b/app/styles/components/_proposal-list.scss
index a35f17c..5a1f01d 100644
--- a/app/styles/components/_proposal-list.scss
+++ b/app/styles/components/_proposal-list.scss
@@ -8,12 +8,16 @@ ul.proposal-list {
padding: 0 1.2rem;
line-height: 4.2rem;
background-color: rgba(255,255,255,0.1);
- font-size: 1.4rem;
+ font-size: 1.2rem;
border-bottom: 1px solid rgba(255,255,255,0.2);
&:first-of-type {
border-top: 1px solid rgba(255,255,255,0.2);
}
+ span {
+ font-size: inherit;
+ }
+
.category {
color: $blue;
padding-right: 0.2rem;
From 32714efeb9fded7b64cc9f0b7c614621eadae7a6 Mon Sep 17 00:00:00 2001
From: Sebastian Kippe
Date: Sat, 16 Jun 2018 17:12:53 +0200
Subject: [PATCH 4/6] Improve layout a bit.
WIP, because this is not ideal. But now it's readable at least.
---
app/components/proposal-list/template.hbs | 22 +++++++++++++---------
app/styles/components/_proposal-list.scss | 22 +++++++++++++++++++---
2 files changed, 32 insertions(+), 12 deletions(-)
diff --git a/app/components/proposal-list/template.hbs b/app/components/proposal-list/template.hbs
index 713b7f2..51d8d6e 100644
--- a/app/components/proposal-list/template.hbs
+++ b/app/components/proposal-list/template.hbs
@@ -1,12 +1,16 @@
{{#each proposals as |proposal|}}
-
- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
-
- {{/if}}
{{/if}}
@@ -43,29 +36,31 @@
{{proposal-list proposals=proposalsClosedSorted
confirmProposal=(action "confirmProposal")}}
-
- {{!-- TODO: We need a better naming --}}
- {{#if kredits.hasAccounts}}
-
- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
-
- {{/if}}
+
+ {{!-- TODO: We need a better naming --}}
+ {{#if kredits.hasAccounts}}
+
+ {{#link-to 'proposals.new'}}Create new proposal{{/link-to}}
+
+ {{/if}}
-
-
-
Add Contributor
-
+ {{#if kredits.hasAccounts}}
+
+
+
Add Contributor
+
-
- {{#if kredits.currentUser.isCore}}
- {{add-contributor contributors=contributors save=(action 'save')}}
- {{else}}
- Only core team members can add new contributors. Please ask someone to set you up.
- {{/if}}
-
-
+
+ {{#if kredits.currentUser.isCore}}
+ {{add-contributor contributors=contributors save=(action 'save')}}
+ {{else}}
+ Only core team members can add new contributors. Please ask someone to set you up.
+ {{/if}}
+