Titan/webapp/titanembeds/templates/admin_guilds.html.j2

33 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2017-07-27 22:55:28 +02:00
{% extends 'site_layout.html.j2' %}
{% set title="Manage Guilds as Administrator" %}
2017-07-27 22:55:28 +02:00
{% block content %}
<h1>Manage Guilds (Admin)</h1>
<p class="flow-text">Select a server to configure Titan Embeds. <strong>(Total server count: {{ servers|length }})</strong></p>
2017-07-27 22:55:28 +02:00
<div class="row">
{% for server in servers %}
<div class="col l4 m6 s12">
<div class="card-panel indigo lighten-5 z-depth-3 hoverable">
<div class="row valign-wrapper">
<div class="col s3">
{% if server.icon %}
<img src="{{ icon_generate(server.guild_id, server.icon) }}" alt="" class="circle responsive-img">
2017-07-27 22:55:28 +02:00
{% else %}
<span class="black-text">No icon :(</span>
{% endif %}
</div>
<div class="col s7">
<span class="black-text">
<p class="flow-text truncate">{{ server.name }}</p>
<br>
<a class="waves-effect waves-light btn" href="{{url_for('admin.administrate_guild', guild_id=server['guild_id'])}}">Modify</a>
2017-07-27 22:55:28 +02:00
</span>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% endblock %}