From 616425d95f09af78094a91902d91c417d9b2621d Mon Sep 17 00:00:00 2001 From: rra Date: Mon, 22 Apr 2024 19:53:35 +0200 Subject: [PATCH] add new field to template, only show info if we supply it --- app/templates/about.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/templates/about.html b/app/templates/about.html index a7a7c018..a2acbdfb 100644 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -11,12 +11,18 @@

{{g.site.name}} is a pyfedi instance created on {{instance.created_at.strftime('%d-%m-%Y')}}. It is home to {{user_amount}} users (of which {{mau}} active in the last month). In the {{community_amount}} communities we discussed {{domains_amount}} domains and made {{posts_amount}} posts.

Team

This instance is administerred by {% for admin in admins %}{{ admin.user_name }}{{ ", " if not loop.last }}{% endfor %}.

+ {% if staff %}

It is moderated by {% for s in staff %}{{ s.user_name }}{{ ", " if not loop.last }}{% endfor %}.

+ {% endif %}

Contact

{{g.site.contact_email | safe }}

About Us

{{g.site.description | safe }}

+ {% if g.site.about %} +

{{g.site.about | safe }}

+ {% elif g.site.sidebar %}

{{g.site.sidebar | safe }}

+ {% endif %} {% if g.site.legal_information %}

Legal Information

{{g.site.legal_information | safe }}