diff --git a/.template-lintrc.js b/.template-lintrc.js index 02bee12..f9345c8 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -4,6 +4,7 @@ module.exports = { extends: 'recommended', rules: { - 'simple-unless': false + 'simple-unless': false, + 'no-nested-interactive': false } }; diff --git a/app/components/contribution-list/component.js b/app/components/contribution-list/component.js index edb7efe..ceebc4a 100644 --- a/app/components/contribution-list/component.js +++ b/app/components/contribution-list/component.js @@ -6,9 +6,13 @@ import { inject as service } from '@ember/service'; export default Component.extend({ + router: service(), + tagName: 'div', classNames: ['contributions'], + selectedContribution: null, + showQuickFilter: false, hideSmallContributions: false, contributorId: null, @@ -57,6 +61,10 @@ export default Component.extend({ } else { window.alert('Only members can veto contributions. Please ask someone to set you up.'); } + }, + + openContributionDetails(contribution) { + this.router.transitionTo('dashboard.contributions.show', contribution); } } diff --git a/app/components/contribution-list/template.hbs b/app/components/contribution-list/template.hbs index 94a32aa..d6495a6 100644 --- a/app/components/contribution-list/template.hbs +++ b/app/components/contribution-list/template.hbs @@ -31,17 +31,13 @@
{{contribution.amount}}₭S diff --git a/app/components/contributor-list/component.js b/app/components/contributor-list/component.js index a5b42fd..05f8e46 100644 --- a/app/components/contributor-list/component.js +++ b/app/components/contributor-list/component.js @@ -7,6 +7,7 @@ export default Component.extend({ tagName: 'table', classNames: 'contributor-list', + selectedContributorId: null, actions: { diff --git a/app/components/contributor-list/template.hbs b/app/components/contributor-list/template.hbs index e187a2a..dfeecd5 100644 --- a/app/components/contributor-list/template.hbs +++ b/app/components/contributor-list/template.hbs @@ -1,8 +1,7 @@
{{#each contributorList as |c|}} -+ + {{user-avatar contributor=model.contributor}} + {{link-to model.contributor.name "dashboard.contributors.show" model.contributor}} + + contributed + {{moment-from model.iso8601Date}}: +
+
+ Kind: {{model.kind}}
+
Status: {{contribution-status model}}
+
+ + Open URL + +
+ {{/if}} ++ {{#if model.ipfsHash}} + + Inspect IPFS data + + {{/if}} +
+