From 0a6b6180b9d99f8e0d807deb866f267faa0ed40a Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 12 Dec 2019 17:33:08 +0100 Subject: [PATCH] Add "give kredits" button to contributor profiles closes #172 --- app/styles/components/_contributor-profile.scss | 4 ++++ app/templates/dashboard/contributors/show.hbs | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/app/styles/components/_contributor-profile.scss b/app/styles/components/_contributor-profile.scss index b911efe..73ed08d 100644 --- a/app/styles/components/_contributor-profile.scss +++ b/app/styles/components/_contributor-profile.scss @@ -42,6 +42,10 @@ section#contributor-profile { } } } + + .actions { + margin-top: 2rem; + } } .actions { diff --git a/app/templates/dashboard/contributors/show.hbs b/app/templates/dashboard/contributors/show.hbs index 07fdad8..c629c52 100644 --- a/app/templates/dashboard/contributors/show.hbs +++ b/app/templates/dashboard/contributors/show.hbs @@ -22,6 +22,13 @@ {{/if}} +
+

+ {{link-to "♥ Give kredits" "contributions.new" + (query-params contributorId=model.id) + class="button green"}} +

+