Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Communication
Website
Commits
7457d02cee87
Commit
7457d02cee87
authored
2 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
Do not use roundup URL as website for supporters
parent
311979c6450a
No related branches found
No related tags found
1 merge request
!3
Do not use roundup URL as website for supporters
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.py
+1
-0
1 addition, 0 deletions
app.py
templates/supporters.html
+4
-1
4 additions, 1 deletion
templates/supporters.html
with
5 additions
and
1 deletion
app.py
+
1
−
0
View file @
7457d02c
...
...
@@ -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/
'
))
...
...
This diff is collapsed.
Click to expand it.
templates/supporters.html
+
4
−
1
View file @
7457d02c
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment