Clean up about page

This commit is contained in:
Jonas Schäfer
2020-03-07 13:31:40 +01:00
parent 18279e3478
commit 6819a4eec6
2 changed files with 21 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ async def home():
@app.route("/meta/about.html") @app.route("/meta/about.html")
async def about(): async def about():
return await render_template("about.html") return await render_template("about.html", version=version)
@app.route("/meta/demo.html") @app.route("/meta/demo.html")
@@ -116,5 +116,8 @@ def proc():
} }
app.template_filter("repr")(repr)
from .user import user_bp # NOQA from .user import user_bp # NOQA
app.register_blueprint(user_bp) app.register_blueprint(user_bp)

View File

@@ -5,18 +5,22 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}">
</head> </head>
<body> <body>
<main>
<div class="box el-2">
<h1>About Snikket</h1> <h1>About Snikket</h1>
<h2>What is Snikket?</h2> <p>To learn more about Snikket, visit the <a href="https://snikket.org">Snikket website</a>.</p>
<p>Snikket is an easy-to-use and easy-to-setup Instant Messaging platform for you and your friends and family.</p> <h2>About this Server</h2>
<h2>What is the Snikket Web Portal?</h2> <p>This is the Snikket server <em>{{ config["SNIKKET_DOMAIN"] }}</em>.</p>
<h2>Behind the Scenes and Licenses</h2> <h3>Software Versions</h3>
<h3>Quart Microframework</h3> <pre>Snikket Server (unknown)
<hr> Snikket Web Portal ({{ version }})</pre>
<h1>h1</h1> {# <h3>Partial configuration</h3>
<h2>h2</h2> <pre>SNIKKET_DOMAIN = {{ config.get("SNIKKET_DOMAIN") | repr }}
<h3>h3</h3> AVATAR_CACHE_TTL = {{ config.get("AVATAR_CACHE_TTL") | repr }}
<h4>h4</h4> SECRET_KEY = &lt;hidden&gt;
<h5>h5</h5> PROSODY_ENDPOINT = &lt;hidden&gt;</pre> #}
<h6>h6</h6> <p><a href="{{ url_for('home') }}" class="button primary">Back to main page</a></pa>
</div>
</main>
</body> </body>
</html> </html>