85 lines
3.8 KiB
HTML
85 lines
3.8 KiB
HTML
{% extends "minecraft_manager/dashboard.html" %}
|
|
{% load csrf_html %}
|
|
{% block title %}Player {{ player.username }}{% endblock %}
|
|
{% block section %}
|
|
<div id="content">
|
|
<h2 class="sub-header">Player Info ({{ player.username }})</h2>
|
|
<div class="row">
|
|
<div class="col-xs-9 col-md-6">
|
|
<p>UUID: {{ player.uuid }}</p>
|
|
{% if player.auth_user %}
|
|
<p>Connected User: {{ player.auth_user.username }}</p>
|
|
{% endif %}
|
|
{% if player.application %}
|
|
<p>Application: <a href="{% url "application" %}{{ player.application.id }}">Here</a></p>
|
|
{% endif %}
|
|
<p>Donor Status: {{ player.donor_status }}</p>
|
|
<p>First Seen: {{ player.first_seen }}</p>
|
|
<p>Last Seen: {{ player.last_seen }}</p>
|
|
<p>Banned: {% if player.is_banned %}<span class="label label-danger">Yes</span>{% else %}<span class="label label-success">No</span>{% endif %}</p>
|
|
</div>
|
|
<div class="col-xs-9 col-md-6">
|
|
<h4>Tickets</h4>
|
|
<table class="table table-hover link-table">
|
|
<tbody>
|
|
{% if form.tickets %}
|
|
{% for ticket in form.tickets %}
|
|
<tr {% if ticket.resolved is True %}class="success"{% else %}class="danger"{% endif %} data-id="{{ ticket.id }}" data-url="{% url "ticket" %}">
|
|
<td>{{ ticket.id }}</td>
|
|
<td>{{ ticket.snippet }}</td>
|
|
<td>{{ ticket.resolved }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr><td colspan="3">No Tickets Found</td></tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
<br/>
|
|
<table class="table table-hover link-table">
|
|
<h4>Notes</h4>
|
|
<tbody>
|
|
{% if form.notes %}
|
|
{% for note in form.notes %}
|
|
<tr {% if note.importance == 'L' %}class="info"{% endif %}{% if note.importance == 'M' %}class="warning"{% endif %}{% if note.importance == 'H' %}class="danger"{% endif %} data-id="{{ note.id }}" data-url="{% url "note" %}">
|
|
<!-- {{ note.id }} -->
|
|
<td>{{ note.snippet }}</td>
|
|
<td>{{ note.importance_display }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr><td colspan="3">No Notes Found</td></tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-primary" href="{% url 'note_add' %}?player={{ player.id }}">Add Note</a>
|
|
<br/><br/>
|
|
<table class="table table-striped table-hover link-table">
|
|
<h4>IPs</h4>
|
|
<tbody>
|
|
{% if form.ips %}
|
|
{% for ip in form.ips %}
|
|
<tr class="default" data-id="" data-url="{% url 'ip' ip.id %}">
|
|
<!-- {{ ip.id }} -->
|
|
<td>{{ ip.ip }} ({{ ip.last_used_formatted }})</td>
|
|
{% if ip.associated %}
|
|
<td>
|
|
{% for assoc in ip.associated %}
|
|
<a href="{% url "player" %}{{ assoc.id }}">{{ assoc.username }}</a>{% if assoc.is_banned %} <span class="label label-danger">Banned</span>{% endif %}<br/>
|
|
{% endfor %}
|
|
</td>
|
|
{% else %}
|
|
<td>None</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr><td colspan="3">No IPs Found</td></tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock section %}
|