pyfedi/app/templates/community/add_remote.html

48 lines
2.2 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 mx-auto">
<div class="card mt-5">
<div class="card-body p-6">
<div class="card-title">{{ _('Search') }}</div>
<p>Accepted address formats: </p>
<ul>
<li>!community@server.name</li>
<li>https://server.name/c/community (lemmy)</li>
<li>https://server.name/m/magazine (kbin/mbin)</li>
</ul>
<p>Search on <a href="https://lemmyverse.net/communities" target='_blank'>Lemmyverse.net</a> to find some.</p>
{{ render_form(form) }}
</div>
</div>
</div>
</div>
{% if new_community and not new_community.banned %}
<div class="row">
<div class="col mx-auto">
<div class="card mt-5">
<div class="card-body p-6">
<div class="card-title">{{ _('Found a community:') }}</div>
<div class="card-body">
<p>
{{ render_communityname(new_community) }}
</p>
<p> {% if subscribed %}
<a class="btn btn-primary mt-4" href="/community/{{ new_community.link() }}/unsubscribe">{{ _('Leave') }}</a>
{% else %}
<a class="btn btn-primary mt-4" href="/community/{{ new_community.link() }}/subscribe">{{ _('Join') }}</a>
{% endif %}
</p>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}