Add admin's avatar on about page

This commit is contained in:
Bat 2018-09-03 15:14:39 +01:00
parent 431bc41cb5
commit 7734557a99
2 changed files with 5 additions and 3 deletions

View File

@ -559,7 +559,8 @@ form.new-post input[type="submit"]:hover { background: #DADADA; }
.stats > div { .stats > div {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
text-align: center; justify-content: center;
align-items: center;
} }
.stats em { .stats em {

View File

@ -8,7 +8,7 @@ About {{ instance.name }}
{% block content %} {% block content %}
<h1>{{ "About {{ instance_name }}" | _(instance_name=instance.name) }}</h1> <h1>{{ "About {{ instance_name }}" | _(instance_name=instance.name) }}</h1>
<section> <section>
{{ instance.short_description_html | safe }} {{ instance.short_description_html | safe }}
</section> </section>
<div class="banner"> <div class="banner">
<section class="stats"> <section class="stats">
@ -29,12 +29,13 @@ About {{ instance.name }}
</div> </div>
<div> <div>
<p>{{ "Administred by" | _ }}</p> <p>{{ "Administred by" | _ }}</p>
<img class="avatar small" src="{{ admin.avatar }}" alt="{{ admin.name }}">
<p><a href="/@/{{ admin.fqn }}">{{ admin.name }}</a><small>(@{{ admin.fqn }})</small></p> <p><a href="/@/{{ admin.fqn }}">{{ admin.name }}</a><small>(@{{ admin.fqn }})</small></p>
</div> </div>
</section> </section>
<p>{{ "Runs Plume {{ version }}" | _(version=version) }} <p>{{ "Runs Plume {{ version }}" | _(version=version) }}
</div> </div>
<section> <section>
{{ instance.long_description_html | safe }} {{ instance.long_description_html | safe }}
</section> </section>
{% endblock content %} {% endblock content %}