add /v1/about/about
This commit is contained in:
parent
86e6eb1fa6
commit
dd01bd1be4
5 changed files with 37 additions and 23 deletions
|
|
@ -443,6 +443,12 @@ async def patch_settings_appearance(data: SettingsIn):
|
|||
|
||||
## TERMS
|
||||
|
||||
@bp.get('/about/about')
|
||||
async def about_about():
|
||||
return dict(
|
||||
content=await render_template("about.md")
|
||||
)
|
||||
|
||||
@bp.get('/about/terms')
|
||||
async def terms():
|
||||
return dict(
|
||||
|
|
|
|||
|
|
@ -9,28 +9,9 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
<h2>Stats</h2>
|
||||
<ul>
|
||||
<li># of posts: <strong>{{ post_count }}</strong></li>
|
||||
<li># of active users (posters in the last 30 days): <strong>{{ user_count }}</strong></li>
|
||||
</ul>
|
||||
|
||||
<h2>Software versions</h2>
|
||||
<ul>
|
||||
<li><strong>Python</strong>: {{ python_version }}</strong></li>
|
||||
<li><strong>SQLAlchemy</strong>: {{ sa_version }}</li>
|
||||
<li><strong>Quart</strong>: {{ quart_version }}</li>
|
||||
<li><strong>{{ app_name }}</strong>: {{ app_version }}</li>
|
||||
</ul>
|
||||
|
||||
<h2>License</h2>
|
||||
<p>Source code is available at: <a href="https://nekode.yusur.moe/yusur/freak">https://nekode.yusur.moe/yusur/freak</a></p>
|
||||
|
||||
{% if impressum %}
|
||||
<h2>Legal Contacts</h2>
|
||||
<pre>{{ impressum }}</pre>
|
||||
{% endif %}
|
||||
|
||||
{% filter to_markdown %}
|
||||
{% include "about.md" %}
|
||||
{% endfilter %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
25
freak/templates/about.md
Normal file
25
freak/templates/about.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
## Stats
|
||||
|
||||
* \# of posts: **{{ post_count }}**
|
||||
* \# of active users (posters in the last 30 days): **{{ user_count }}**
|
||||
|
||||
## Software versions
|
||||
|
||||
* **Python**: {{ python_version }}
|
||||
* **SQLAlchemy**: {{ sa_version }}
|
||||
* **Quart**: {{ quart_version }}
|
||||
* **{{ app_name }}**: {{ app_version }}
|
||||
|
||||
## License
|
||||
|
||||
Source code is available at: <https://nekode.yusur.moe/yusur/freak>
|
||||
|
||||
{% if impressum %}
|
||||
## Legal Contacts
|
||||
|
||||
```
|
||||
{{ impressum }}
|
||||
```
|
||||
{% endif %}
|
||||
|
||||
|
|
@ -28,6 +28,8 @@ privacy-related requests. Any contact request knowingly from people younger than
|
|||
|
||||
United States resident under the age of 18 are **not allowed** in any way to access our network without logging in.
|
||||
|
||||
Australian and Danish users under the age of 16 are not authorized to use their accounts.
|
||||
|
||||
New Digital Spirit reserves the right to require ID verification in case of age doubt or suspected security threat.
|
||||
|
||||
Minors on New Digital Spirit Network are additionally bound to the [Minor Account Policy](https://ndspir.it/u18.html),
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ dependencies = [
|
|||
"libsass",
|
||||
"setuptools>=78.1.0",
|
||||
"Hypercorn",
|
||||
"suou[sqlalchemy]>=0.11.1"
|
||||
"suou[sqlalchemy]>=0.11.2"
|
||||
]
|
||||
requires-python = ">=3.10"
|
||||
classifiers = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue