Show inactive supporters on sponsors page too.
This commit is contained in:
parent
409cd07c73
commit
7982fc4f09
5 changed files with 105 additions and 41 deletions
|
|
@ -218,14 +218,9 @@ runForever()
|
|||
</html>
|
||||
#end proc
|
||||
#
|
||||
#
|
||||
#proc generateSponsors(sponsors: seq[Sponsor]): string =
|
||||
#result = ""
|
||||
<h1 id="our-current-sponsors">Our Current Sponsors</h1>
|
||||
<p>This page lists the companies and individuals that are, very kindly, contributing a
|
||||
monthly amount to help sustain Nim's development. For more details take a
|
||||
look at the <a href="https://salt.bountysource.com/teams/nim">Bountysource campaign</a>.</p>
|
||||
<p class="lastUpdate">Last updated: ${getTime().getGMTime().format("dd/MM/yyyy")}</p>
|
||||
<dl>
|
||||
#for sponsor in sponsors:
|
||||
<dt class="level-${sponsor.level}">
|
||||
#if sponsor.url.len > 0:
|
||||
|
|
@ -248,6 +243,24 @@ look at the <a href="https://salt.bountysource.com/teams/nim">Bountysource campa
|
|||
Donated $$${sponsor.allTime} in total since ${sponsor.since}
|
||||
</dd>
|
||||
#end for
|
||||
#end proc
|
||||
#proc generateSponsorsPage(activeSponsors, inactiveSponsors: seq[Sponsor]): string =
|
||||
#result = ""
|
||||
<h1 id="our-current-sponsors">Our Current Sponsors</h1>
|
||||
<p>This section lists the companies and individuals that are, very kindly, contributing a
|
||||
monthly amount to help sustain Nim's development. For more details take a
|
||||
look at the <a href="https://salt.bountysource.com/teams/nim">Bountysource campaign</a>.</p>
|
||||
<p class="lastUpdate">Last updated: ${getTime().getGMTime().format("dd/MM/yyyy")}</p>
|
||||
<dl>
|
||||
${generateSponsors(activeSponsors)}
|
||||
</dl>
|
||||
#
|
||||
<h1 id="our-past-sponsors">Our Past Sponsors</h1>
|
||||
<p>This section lists the companies and individuals that have contributed
|
||||
money in the past to help sustain Nim's development. For more details take a
|
||||
look at the <a href="https://salt.bountysource.com/teams/nim">Bountysource campaign</a>.</p>
|
||||
<dl>
|
||||
${generateSponsors(inactiveSponsors)}
|
||||
</dl>
|
||||
#
|
||||
#end proc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue