mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
84 lines
3.5 KiB
HTML
84 lines
3.5 KiB
HTML
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
{% else %}
|
|
{% extends "base.html" %}
|
|
{% endif %}
|
|
{% 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="/domains">{{ _('Domains') }}</a></li>
|
|
<li class="breadcrumb-item active">{{ domain.name|shorten }}</li>
|
|
</ol>
|
|
</nav>
|
|
<h1 class="mt-2">{{ domain.name }}</h1>
|
|
{% if domain.post_warning -%}
|
|
<p>{{ domain.post_warning }}</p>
|
|
{% endif -%}
|
|
<div class="post_list">
|
|
{% for post in posts.items %}
|
|
{% include 'post/_post_teaser.html' %}
|
|
{% else %}
|
|
<p>{{ _('No posts in this domain yet.') }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
<aside id="side_pane" class="col-12 col-md-4 side_pane" role="complementary">
|
|
{% if current_user.is_authenticated %}
|
|
<div class="card mt-3">
|
|
<div class="card-header">
|
|
<h2>{{ _('Domain management') }}</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
{% if domain.blocked_by(current_user) %}
|
|
<div class="col-4">
|
|
<a class="w-100 btn btn-primary" href="/d/{{ domain.id }}/unblock">{{ _('Unblock') }}</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="col-4">
|
|
<a class="w-100 btn btn-primary" href="/d/{{ domain.id }}/block">{{ _('Block') }}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %}
|
|
{% if domain.banned %}
|
|
<div class="col-8">
|
|
<a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/unban">{{ _('Unban') }}</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="col-8">
|
|
<a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/ban">{{ _('Ban instance-wide') }}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% include "_inoculation_links.html" %}
|
|
</aside>
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|