mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-02-01 00:48:15 +00:00
Correct and rename eve_api templates to be more verbose and logical
This commit is contained in:
61
app/eve_api/templates/eve_api/eveplayeralliance_detail.html
Normal file
61
app/eve_api/templates/eve_api/eveplayeralliance_detail.html
Normal file
@@ -0,0 +1,61 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load humanize %}
|
||||
{% load naturaltimediff %}
|
||||
|
||||
{% block content %}
|
||||
<div class="page-header">
|
||||
<h1>{{ alliance.name }}</h1>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<li><b>Member Count:</b> {{ alliance.member_count }}</li>
|
||||
<li><b>Executor Corporation:</b> <a href="{% url eveapi-corporation alliance.executor.id %}">{{ alliance.executor }}</a></li>
|
||||
<li><b>Alliance Leader:</b> {{ executor }}</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
{% if request.user.is_superuser %}
|
||||
<p>
|
||||
<a href="{% url eveapi-alliance-refresh alliance.id %}" title="Forces a access update for all users in this alliance" class="btn error">Mass Update Access</a>
|
||||
<p>
|
||||
{% endif %}
|
||||
|
||||
<h2>Corporations</h2>
|
||||
|
||||
<table class="zebra-striped" id="corporations">
|
||||
<thead>
|
||||
<tr><th class="header">Name</td><th class="header">Members</th><th class="header">Average SP</th><th class="header">API Coverage</th><th class="header">Director Key?</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for corp in corporations %}
|
||||
<tr><td><a href="{% url eveapi-corporation corp.id %}">{{ corp }}</a></td><td>{{ corp.member_count }}</td><td>{{ corp.average_sp|intcomma }}</td><td>{{ corp.api_key_coverage|floatformat:2 }}%</td><td>{{ corp.director_api_keys.count }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<li class="prev{% if not page_obj.has_previous %} disabled{% endif %}"><a href="{% if page_obj.has_previous %}?page={{ page_obj.previous_page_number }}{% endif %}">Previous</a></li>
|
||||
{% for i in page_obj.page_range %}
|
||||
{% if not i %}
|
||||
<li><a href="#">...</a></li>
|
||||
{% else %}
|
||||
<li{% if i == page_obj.number %} class="active"{% endif %}><a href="?page={{ i }}">{{ i }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li class="next{% if not page_obj.has_next %} disabled{% endif %}"><a href="{% if page_obj.has_next %}?page={{page_obj.next_page_number }}{% endif %}">Next</a>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
|
||||
<script >
|
||||
$(function() { $("table#corporations").tablesorter({ sortList: [[0,0]] }); });
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user