2017-03-26 05:31:47 +02:00
{% extends 'site_layout.html.j2' %}
2017-07-14 06:04:04 +02:00
{% set title="Dashboard" %}
2017-03-25 08:52:56 +01:00
{% block content %}
<h1>User Dashboard</h1>
<p class="flow-text">Select a server to configure Titan Embeds.</p>
<p>*List missing some servers? It's because you must have either <strong>Manage Server</strong>, <strong>Kick Members</strong>, or <strong>Ban Members</strong> permissions to modify embed settings.</p>
<div class="row">
{% for server in servers %}
2017-04-08 01:35:14 +02:00
<div class="col l4 m6 s12">
2017-03-26 05:31:47 +02:00
<div class="card-panel indigo lighten-5 z-depth-3 hoverable">
2017-03-25 08:52:56 +01:00
<div class="row valign-wrapper">
2017-04-08 01:35:14 +02:00
<div class="col s3">
2017-03-25 08:52:56 +01:00
{% if server.icon %}
<img src="{{ icon_generate(server.id, server.icon) }}" alt="" class="circle responsive-img">
{% else %}
<span class="black-text">No icon :(</span>
{% endif %}
</div>
2017-03-26 05:31:47 +02:00
<div class="col s7">
2017-03-25 08:52:56 +01:00
<span class="black-text">
2017-03-26 05:31:47 +02:00
<p class="flow-text truncate">{{ server.name }}</p>
2017-03-25 08:52:56 +01:00
<br>
<a class="waves-effect waves-light btn" href="{{url_for('user.administrate_guild', guild_id=server['id'])}}">Modify</a>
</span>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
2017-05-22 03:07:32 +02:00
<hr>
{% if cosmetics is none %}
<div class="row">
<div class="col s12">
<div class="card-panel indigo lighten-5 z-depth-3 hoverable black-text">
<h4>Cosmetics!</h4>
<p class="flow-text">Would you like to have <strong>cosmetics</strong> such as <em>custom CSS</em> for your embed?</p>
<a class="waves-effect waves-light btn" href="https://discord.io/Titan">Talk to us!</a>
</div>
</div>
</div>
{% endif %}
{% if css_list is not none %}
<p class="flow-text">
Create or modify your custom CSS.
<a class="waves-effect waves-light btn" href="{{ url_for("user.new_custom_css_get") }}">New</a>
</p>
<div class="row">
{% for css in css_list %}
<div class="col l4 m6 s12">
<div class="card-panel indigo lighten-5 z-depth-3 hoverable black-text">
<p class="flow-text truncate"><code>#{{ css.id }}</code> {{ css.name }}</p>
<a class="waves-effect waves-light btn" href="{{ url_for("user.edit_custom_css_get", css_id=css.id) }}">Modify</a>
</div>
</div>
{% endfor %}
</div>
{% endif %}
2017-08-14 03:10:03 +02:00
<hr>
<div class="row">
<div class="col s12">
<div class="card-panel indigo lighten-5 z-depth-3 hoverable black-text">
<h4>Donations!</h4>
<p class="flow-text">Would you like to support the Titan Embeds project?</p>
2017-09-04 06:12:08 +02:00
<p>You currently have <strong>{{ session["tokens"] }}</strong> Titan Tokens.</p>
<a class="waves-effect waves-light btn" href="{{ url_for('user.donate_get') }}">Donate!!</a>
2017-08-14 03:10:03 +02:00
</div>
</div>
</div>
{% endblock %}