Skip to content
Snippets Groups Projects
Commit 7457d02cee87 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Do not use roundup URL as website for supporters

parent 311979c6450a
No related branches found
No related tags found
1 merge request!3Do not use roundup URL as website for supporters
...@@ -788,6 +788,7 @@ ...@@ -788,6 +788,7 @@
return render_template('supporters.html', return render_template('supporters.html',
supporters=fetch_supporters(), supporters=fetch_supporters(),
discuss_url=partial(url, start='https://discuss.tryton.org/'), 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/')) heptapod_url=partial(url, start='https://foss.heptapod.net/'))
......
...@@ -19,4 +19,5 @@ ...@@ -19,4 +19,5 @@
<div class="container"> <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"> <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 %} {% for supporter in supporters %}
{% with %}
{% set discuss = discuss_url(supporter) %} {% set discuss = discuss_url(supporter) %}
...@@ -22,4 +23,5 @@ ...@@ -22,4 +23,5 @@
{% set discuss = discuss_url(supporter) %} {% set discuss = discuss_url(supporter) %}
{% set roundup = roundup_url(supporter) %}
{% set heptapod = heptapod_url(supporter) %} {% set heptapod = heptapod_url(supporter) %}
<div class="col mb-gutter"> <div class="col mb-gutter">
<div class="card mx-auto shadow" style="max-width: 200px"> <div class="card mx-auto shadow" style="max-width: 200px">
...@@ -33,10 +35,10 @@ ...@@ -33,10 +35,10 @@
<a href="{{ heptapod }}"><span class="material-icons">bug_report</span></a> <a href="{{ heptapod }}"><span class="material-icons">bug_report</span></a>
{% endif %} {% endif %}
</div> </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"> <div class="card-footer text-truncate">
<a href="{{ supporter['website'] }}">{{ supporter['website'] | hostname }}</a> <a href="{{ supporter['website'] }}">{{ supporter['website'] | hostname }}</a>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
...@@ -37,9 +39,10 @@ ...@@ -37,9 +39,10 @@
<div class="card-footer text-truncate"> <div class="card-footer text-truncate">
<a href="{{ supporter['website'] }}">{{ supporter['website'] | hostname }}</a> <a href="{{ supporter['website'] }}">{{ supporter['website'] | hostname }}</a>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% endwith %}
{% endfor %} {% endfor %}
</div> </div>
<p class="mt-5 text-center"> <p class="mt-5 text-center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment