2024-10-11 21:13:22 -07:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
2024-12-10 03:16:52 -08:00
|
|
|
{% endif %}
|
2024-10-11 21:13:22 -07:00
|
|
|
{% from 'bootstrap/form.html' import render_form %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-8 position-relative main_pane">
|
|
|
|
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="/instances">{{ _('Instances') }}</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="/instance/{{ instance.domain }}">{{ instance.domain }}</a></li>
|
|
|
|
<li class="breadcrumb-item active">{{ _('People') }}</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
<h1 class="mt-2">{{ _('People from %(instance)s', instance=instance.domain) }}</h1>
|
|
|
|
{% if people %}
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
2024-10-12 14:53:47 -07:00
|
|
|
<th>{{ _('Name') }}</th>
|
|
|
|
<th>{{ _('About') }}</th>
|
|
|
|
<th>{{ _('Posts') }}</th>
|
|
|
|
<th>{{ _('Comments') }}</th>
|
2024-10-11 21:13:22 -07:00
|
|
|
</tr>
|
2024-10-12 15:16:36 -07:00
|
|
|
{% for person in people.items %}
|
2024-10-11 21:13:22 -07:00
|
|
|
<tr>
|
2024-10-12 14:53:47 -07:00
|
|
|
<td valign="top">{{ render_username(person) }}</td>
|
2024-10-20 19:55:55 -07:00
|
|
|
<td class="profile_bio">{{ person.about_html | safe if person.about_html }}</td>
|
2024-10-12 14:53:47 -07:00
|
|
|
<td valign="top">{{ person.post_count }}</td>
|
|
|
|
<td valign="top">{{ person.post_reply_count }}</td>
|
2024-10-11 21:13:22 -07:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2024-10-12 15:16:36 -07:00
|
|
|
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
|
|
|
{% if prev_url -%}
|
|
|
|
<a href="{{ prev_url }}" class="btn btn-primary" rel='nofollow'>
|
|
|
|
<span aria-hidden="true">←</span> {{ _('Previous page') }}
|
|
|
|
</a>
|
|
|
|
{% endif -%}
|
|
|
|
{% if next_url -%}
|
|
|
|
<a href="{{ next_url }}" class="btn btn-primary" rel='nofollow'>
|
|
|
|
{{ _('Next page') }} <span aria-hidden="true">→</span>
|
|
|
|
</a>
|
|
|
|
{% endif -%}
|
|
|
|
</nav>
|
2024-10-11 21:13:22 -07:00
|
|
|
{% else %}
|
|
|
|
<p>{{ _('No people to show') }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<aside id="side_pane" class="col-12 col-md-4 side_pane" role="complementary">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h2> </h2>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|