Prevent duplicate ip hashes from showing up the unauth list, Set unauth table to default horizontal

This commit is contained in:
Jeremy Zhang
2017-04-22 23:55:03 -07:00
parent 4899c6d2d9
commit 13b69d7e2d
5 changed files with 113 additions and 5 deletions

View File

@ -1,6 +1,10 @@
{% extends 'site_layout.html.j2' %}
{% block title %}Administrate Guild: {{ guild['name'] }}{% endblock %}
{% block additional_head_elements %}
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/administrate_guild.css') }}">
{% endblock %}
{% block content %}
<h1>Administrating: {{ guild['name'] }}</h1>
<p class="flow-text">For this server, you are allowed the following actions:
@ -72,6 +76,7 @@
<th>Banned by</th>
<th>Banned Reason</th>
<th>Ban Lifted by</th>
<th>Recent Aliases</th>
</tr>
</thead>
<tbody>
@ -91,11 +96,22 @@
<td>{{ member['banned_by'] }}</td>
<td>{{ member['banned_reason'] }}</td>
<td>{{ member['ban_lifted_by'] }}</td>
<td>
<ul>
{% if member['aliases']|length > 0 %}
{% for alias in member['aliases'] %}
<li>{{ alias }}</li>
{% endfor %}
{% else %}
<li>None</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>Note that all bans are by IP. Seeing duplicates? It is because users are generated a unique session on each browser load.</p>
<p>Note that all bans are by IP. Seeing duplicates? It is because users are generated a unique session on each browser load. (Though we try to remove/concat any duplicates IP hashes)</p>
</div>
</div>

View File

@ -11,7 +11,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{% block title %}{% endblock %} - Titan Embeds for Discord</title>
{% block additional_head_elements %}{% endblock %}
{% include 'google_analytics.html.j2' %}
</head>
<body>