pyfedi/app/templates/instance/overview.html

41 lines
2.3 KiB
HTML
Raw Normal View History

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 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>
2024-10-24 17:37:57 -07:00
<p><a href="https://{{ instance.domain }}" rel="noopener nofollow noindex noreferrer">{{ _('Go to instance') }} <span class="fe fe-external"></span></a></p>
2024-10-11 21:13:22 -07:00
</div>
<aside id="side_pane" class="col-12 col-md-4 side_pane" role="complementary">
<div class="card">
<div class="card-body">
2024-10-24 17:37:57 -07:00
{% 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 -%}
2024-10-11 21:13:22 -07:00
</div>
</div>
</aside>
</div>
{% endblock %}