Skip to content

Commit

Permalink
make contact and source code link configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Oct 1, 2024
1 parent 953cd86 commit fb6a140
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def last():

@app.route("/faq")
def faq():
return render_template("faq.jinja")
return render_template("faq.jinja", **CONFIG["FAQ"])


if "INTERRUPT_KEY" in CONFIG:
Expand Down
11 changes: 11 additions & 0 deletions settings.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ VERSION = 1
#]


# contact details
[FAQ]
SOURCE = "https://github.com/voc/infobeamer-cms"
CONTACT = """
Please use the <a href="https://webirc.hackint.org/#ircs://irc.hackint.org/#infobeamer">IRC
Channel #infobeamer on irc.hackint.org</a> (also
<a href="https://www.hackint.org/transport/matrix">bridged to matrix</a>)
or #info-beamer on the cccv rocketchat instance.
"""


# extra assets. If this is empty, only the uploaded content and a notice
# on where to find the CMS will be shown. You can use this to overlay
# content on top of that content.
Expand Down
9 changes: 3 additions & 6 deletions templates/faq.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<p>
<strong>Help wanted!</strong> If you want to help us to get rid of
the github login, please get in touch. This project is written in
python and <a href="https://github.com/sophieschi/36c3-cms">hosted
on github</a>.
python and <a href="{{ SOURCE }}">the source code is available
publicly</a>.
</p>
<h3>What formats are supported?</h3>
<p>
Expand All @@ -78,10 +78,7 @@
</p>
<h3>Where can I get in contact?</h3>
<p>
Please use the <a href="https://webirc.hackint.org/#ircs://irc.hackint.org/#infobeamer">IRC
Channel #infobeamer on irc.hackint.org</a> (also
<a href="https://www.hackint.org/transport/matrix">bridged to matrix</a>)
or #info-beamer on the cccv rocketchat instance.
{{ CONTACT }}
<p>
{% endblock %}

Expand Down

0 comments on commit fb6a140

Please sign in to comment.