diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-06-04 17:16:20 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-06-04 17:16:20 +0100 |
commit | cf70fe629a909b1eeba086b5bbc436250898ae97 (patch) | |
tree | 7694f186f17cef8588a5eb281069066369c9ce44 /tools/website.tmpl | |
parent | 1d44fee399868ebc6c5e412ee23c7fd1e4c37351 (diff) | |
download | Nim-cf70fe629a909b1eeba086b5bbc436250898ae97.tar.gz |
Implemented generation of sponsors page + missing assets.
Diffstat (limited to 'tools/website.tmpl')
-rw-r--r-- | tools/website.tmpl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/website.tmpl b/tools/website.tmpl index 6ae975839..69547ca9e 100644 --- a/tools/website.tmpl +++ b/tools/website.tmpl @@ -209,3 +209,37 @@ runForever() # end if </body> </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> +<dl> +#for sponsor in sponsors: + <dt class="level-${sponsor.level}"> + #if sponsor.url.len > 0: + <a href="${sponsor.url}" target="_blank">${sponsor.name}</a> + #else: + ${sponsor.name} + #end if + </dt> + <dd class="logo"> + #if sponsor.logo.len > 0: + <a href="${sponsor.url}" target="_blank"> + <img alt="${sponsor.name}'s logo" src="${sponsor.logo}"/> + </a> + #end if + </dd> + <dd class="this_month"> + Donated <b>$$${sponsor.thisMonth}</b> this month + </dd> + <dd class="legend"> + Donated $$${sponsor.allTime} in total since ${sponsor.since} + </dd> +#end for +</dl> +# +#end proc |