updated article styling

This commit is contained in:
TussockyJoker committed 2026-04-06 15:47:13 +01:00
1 parent f5e2349aca
commit 4e603b77c2
2 files changed
+10 -15

No files matched your search

+6 -6
View File
@@ -20,12 +20,12 @@ def data(article_id):
raise TypeError(f"No species named '{species_english}' found in the database.")
return render_template(
"library/article.jinja",
article_id =database_entry["article_id" ].capitalize(),
title =database_entry["title" ].capitalize(),
subtitle =database_entry["subtitle" ],
main_text =database_entry["main_text" ].capitalize(),
author =database_entry["author" ],
publish_date=database_entry["publish_date" ])
article_id =database_entry["article_id" ],
title =database_entry["title" ].title(),
subtitle =database_entry["subtitle" ],
main_text =database_entry["main_text" ].capitalize(),
author =database_entry["author" ],
publish_date=database_entry["publish_date" ])
@page.route("/species/image/<photoid>")
def image(photoid):
+4 -9
View File
@@ -4,18 +4,13 @@
{% endblock %}
{% block content %}
{% from 'button.jinja' import button %}
<div class="species-layout">
<section id="summary" style="padding: 10px 20px; text-align: center; margin-top:1rem" class="container">
<h1>{{ title }}</h1>
<h2><em>{{ subtitle }}</em></h2>
<p>Category: {{author}}</p>
<p>Category: {{publish_date}}</p>
<h3><em>{{ subtitle }}</em></h3>
<p>Author: {{author}}</p>
<p>Published: {{publish_date}}</p>
<p>{{ main_text }}</p>
</section>
<section id="info" style="padding: 10px 20px; text-align: center;" class="container">
<p>{{ main_text }}</p>
</section>
</div>
{# this button should only be visible to certain account types #}
{# <div style="text-align: right;">
{{ button(url='/species/editor/'+species_id, button_text='Edit Species') }}