Divent/divent/templates/guilds.html.j2

51 lines
2.1 KiB
Plaintext
Raw Normal View History

2022-09-12 17:39:50 +00:00
{% extends "base.html.j2" %}
{% block content %}
<form action="{{ url_for(".guilds") }}" method="get">
<div id="box">
<div id="avatars">
<img src="{{ client.user.display_avatar }}"
2023-11-07 00:26:12 +00:00
alt="{{ _("Bot Logo") }}"
2022-09-12 17:39:50 +00:00
width="80"
2023-11-07 00:26:12 +00:00
height="80" />
2022-09-12 17:39:50 +00:00
<span id="dots">…</span>
2023-11-07 00:26:12 +00:00
<img src="{{ avatar.url }}"
alt="{{ _("User Avatar") }}"
2022-09-12 18:00:44 +00:00
width="80"
2023-11-07 00:26:12 +00:00
height="80" />
2022-09-12 17:39:50 +00:00
</div>
<h1>
<a href="{{ url_for(".index") }}">{{ client.user.display_name }}</a>
</h1>
2023-11-07 00:26:12 +00:00
<h2>{{ _("The discord scheduled event calendar generator") }}</h2>
<hr>
<a class="button" href="{{ url_for(".guilds", guild=user.id) }}">{{ _("For all your servers") }}</a>
<div class="hr-sect">{{ _("OR") }}</div>
<select name="guild" class="black_input" onchange="this.form.submit()">
2023-11-07 00:26:12 +00:00
<option>&nbsp;</option>
2022-09-12 17:39:50 +00:00
{% for guild in common_guilds %}
2023-11-07 00:26:12 +00:00
<option value="{{ guild.vanity_url_code|default(guild.id, True) }}">{{ guild.name }}</option>
2022-09-12 17:39:50 +00:00
{% endfor %}
</select>
<div class="hr-sect">{{ _("OR") }}</div>
<a class="button"
href="https://discord.com/api/oauth2/authorize?client_id={{ client.user.id }}&permissions=8589934592&scope=bot">
{{ _("Add the bot on your server") }}
</a>
<ul>
<li>
{{ _("You must have") }}
<strong>{{ _("Manage Server") }}</strong>
{{ _("permission on this server to perform this action") }}
</li>
<li>
{{ _("After adding the bot,") }}
<a href="{{ url_for(".guilds") }}">
<i class="fa fa-refresh"></i>
<strong>{{ _("reload the page") }}</strong>
</a>
</li>
</ul>
</div>
</form>
{% endblock content %}