mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
40 lines
2.3 KiB
HTML
40 lines
2.3 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="/instances">{{ _('Instances') }}</a></li>
|
|
<li class="breadcrumb-item active">{{ instance.domain }}</li>
|
|
</ol>
|
|
</nav>
|
|
<h1 class="mt-2">{{ _('%(instance)s overview', instance=instance.domain) }}</h1>
|
|
<p>{{ _('This is a %(software)s instance.', software=instance.software) }}</p>
|
|
<p><a href="{{ url_for('instance.instance_people', instance_domain=instance.domain) }}">{{ _('People') }}</a><br />
|
|
<a href="{{ url_for('instance.instance_posts', instance_domain=instance.domain) }}">{{ _('Posts') }}</a></p>
|
|
<p><a href="https://{{ instance.domain }}" rel="noopener nofollow noindex noreferrer">{{ _('Go to instance') }} <span class="fe fe-external"></span></a></p>
|
|
</div>
|
|
|
|
<aside id="side_pane" class="col-12 col-md-4 side_pane" role="complementary">
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
{% if current_user.is_authenticated -%}
|
|
{% if current_user.has_blocked_instance(instance.id) -%}
|
|
<a class="btn btn-primary" href="{{ url_for('instance.instance_unblock', instance_id=instance.id, redirect='/instance/' + instance.domain) }}" rel="nofollow">{{ _('Unblock %(instance_name)s', instance_name=instance.domain) }}</a>
|
|
{% else %}
|
|
<a class="btn btn-primary confirm_first" href="{{ url_for('instance.instance_block', instance_id=instance.id, redirect='/instance/' + instance.domain) }}" rel="nofollow">{{ _('Block everyone from %(instance_name)s', instance_name=instance.domain) }}</a>
|
|
{% endif -%}
|
|
{% endif -%}
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
{% endblock %}
|