Cédric Krier pushed to branch branch/default at Tryton / Website
Commits:
7457d02c by Cédric Krier at 2022-12-24T10:46:36+01:00
Do not use roundup URL as website for supporters
- - - - -
2 changed files:
- app.py
- templates/supporters.html
Changes:
=====================================
app.py
=====================================
@@ -788,6 +788,7 @@
return render_template('supporters.html',
supporters=fetch_supporters(),
discuss_url=partial(url, start='https://discuss.tryton.org/'),
+ roundup_url=partial(url, start='https://bugs.tryton.org/'),
heptapod_url=partial(url, start='https://foss.heptapod.net/'))
=====================================
templates/supporters.html
=====================================
@@ -19,4 +19,5 @@
<div class="container">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4
row-cols-xl-6">
{% for supporter in supporters %}
+ {% with %}
{% set discuss = discuss_url(supporter) %}
@@ -22,4 +23,5 @@
{% set discuss = discuss_url(supporter) %}
+ {% set roundup = roundup_url(supporter) %}
{% set heptapod = heptapod_url(supporter) %}
<div class="col mb-gutter">
<div class="card mx-auto shadow" style="max-width: 200px">
@@ -33,10 +35,10 @@
<a href="{{ heptapod }}"><span
class="material-icons">bug_report</span></a>
{% endif %}
</div>
- {% if supporter['website'] and supporter['website'] not in
[discuss, heptapod] %}
+ {% if supporter['website'] and supporter['website'] not in
[discuss, roundup, heptapod] %}
<div class="card-footer text-truncate">
<a href="{{ supporter['website'] }}">{{
supporter['website'] | hostname }}</a>
</div>
{% endif %}
</div>
</div>
@@ -37,9 +39,10 @@
<div class="card-footer text-truncate">
<a href="{{ supporter['website'] }}">{{
supporter['website'] | hostname }}</a>
</div>
{% endif %}
</div>
</div>
+ {% endwith %}
{% endfor %}
</div>
<p class="mt-5 text-center">
View it on Heptapod:
https://foss.heptapod.net/tryton/website/-/commit/7457d02cee87893c9a52d2d3b87db35e8aec63e9
--
View it on Heptapod:
https://foss.heptapod.net/tryton/website/-/commit/7457d02cee87893c9a52d2d3b87db35e8aec63e9
You're receiving this email because of your account on foss.heptapod.net.