This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
forked from groovy/groovy-website
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added links for contributors to their open collective pages
- Loading branch information
Showing
5 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
@(contributor: Contributor) | ||
<article class="card open-collective-card"> | ||
<div class="card-body d-flex flex-column align-items-center"> | ||
<div class="card-avatar"> | ||
<img src='@contributor.image' alt="logo" /> | ||
</div> | ||
<a class="open-collective-card" href='https://opencollective.com/@contributor.collectiveSlug' target="_blank" rel="noopener noreferrer"> | ||
<article class="card"> | ||
<div class="card-body d-flex flex-column align-items-center"> | ||
<div class="card-avatar"> | ||
<img src='@contributor.image' alt="logo" /> | ||
</div> | ||
|
||
<h3 class="card-title text-center">@contributor.name</h3> | ||
</div> | ||
</article> | ||
<h3 class="card-title text-center">@contributor.name</h3> | ||
</div> | ||
</article> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
@import java.time.format.DateTimeFormatter | ||
@(contributor: Contributor) | ||
<article class="card open-collective-card"> | ||
<div class="card-body"> | ||
<div class="d-flex align-items-start justify-content-between"> | ||
<div class="card-avatar"> | ||
<img src='@contributor.image' alt="logo" /> | ||
<a class="open-collective-card" href='https://opencollective.com/@contributor.collectiveSlug' target="_blank" rel="noopener noreferrer"> | ||
<article class="card"> | ||
<div class="card-body"> | ||
<div class="d-flex align-items-start justify-content-between"> | ||
<div class="card-avatar"> | ||
<img src='@contributor.image' alt="logo" /> | ||
</div> | ||
|
||
@if(contributor.description.nonEmpty) { | ||
<span class="badge text-bg-success">@contributor.description</span> | ||
} | ||
</div> | ||
|
||
@if(contributor.description.nonEmpty) { | ||
<span class="badge text-bg-success">@contributor.description</span> | ||
} | ||
</div> | ||
|
||
<h3 class="card-title">@contributor.name</h3> | ||
<h3 class="card-title">@contributor.name</h3> | ||
|
||
<div class="d-flex align-items-center justify-content-between"> | ||
<span class="text-success fs-5 fw-semibold">$ @Math.round(contributor.totalAmountDonated / 100)</span> | ||
<span class="text-secondary">since @contributor.since.format(DateTimeFormatter.ofPattern("MMM YYYY"))</span> | ||
<div class="d-flex align-items-center justify-content-between"> | ||
<span class="text-success fs-5 fw-semibold">$ @Math.round(contributor.totalAmountDonated / 100)</span> | ||
<span class="text-secondary">since @contributor.since.format(DateTimeFormatter.ofPattern("MMM YYYY"))</span> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</article> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ class OpenCollectiveWebApi @Inject() ( | |
totalAmountDonated | ||
type | ||
description | ||
collectiveSlug | ||
image | ||
} | ||
} | ||
|