2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
2024-12-10 12:16:52 +01:00
|
|
|
{% endif %}
|
2023-08-29 22:01:06 +12:00
|
|
|
{% 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>
|
2024-09-04 13:55:23 -04:00
|
|
|
<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>
|
2023-08-29 22:01:06 +12:00
|
|
|
{{ render_form(form) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-14 15:55:45 +13:00
|
|
|
{% if new_community and not new_community.banned %}
|
2023-08-29 22:01:06 +12:00
|
|
|
<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>
|
2024-07-04 14:26:18 +02:00
|
|
|
{{ render_communityname(new_community) }}
|
2023-11-17 22:02:44 +13:00
|
|
|
</p>
|
|
|
|
<p> {% if subscribed %}
|
2024-01-05 14:09:46 +13:00
|
|
|
<a class="btn btn-primary mt-4" href="/community/{{ new_community.link() }}/unsubscribe">{{ _('Leave') }}</a>
|
2023-08-29 22:01:06 +12:00
|
|
|
{% else %}
|
2024-01-05 14:09:46 +13:00
|
|
|
<a class="btn btn-primary mt-4" href="/community/{{ new_community.link() }}/subscribe">{{ _('Join') }}</a>
|
2023-08-29 22:01:06 +12:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|