mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-20 21:29:26 +00:00
Initial work on re-themeing auth with Bootstrap CSS
This commit is contained in:
@@ -15,8 +15,16 @@
|
||||
|
||||
<h2>Corporations</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Name</td><th>Members</th><th>Average SP</th><th>API Coverage</th><th>Director Key?</th></tr>
|
||||
<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
|
||||
<script >
|
||||
$(function() {
|
||||
$("table#corporations").tablesorter({ sortList: [[0,0]] });
|
||||
});
|
||||
</script>
|
||||
<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>
|
||||
{% 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 %}
|
||||
|
||||
@@ -4,44 +4,58 @@
|
||||
{% load naturaltimediff %}
|
||||
{% block content %}
|
||||
|
||||
<div class="character_info">
|
||||
<h1>{{ character.name }}</h1>
|
||||
<div class="page-header">
|
||||
<h1>{{ character.name }}</h1>
|
||||
</div>
|
||||
|
||||
<div class="character_portrait">
|
||||
<img src="https://image.eveonline.com/Character/{{ character.id }}_256.jpg" />
|
||||
</div>
|
||||
|
||||
<div class="character_corporation">
|
||||
<span><a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.ticker }}</a></span>
|
||||
<img src="https://image.eveonline.com/Corporation/{{ character.corporation.id }}_64.png" />
|
||||
</div>
|
||||
|
||||
{% if character.corporation.alliance %}
|
||||
<div class="character_alliance">
|
||||
<span><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.ticker }}</a></span>
|
||||
<img src="https://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" />
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h2>Attributes</h2>
|
||||
|
||||
<div class="character_attributes">
|
||||
<h2>Attributes</h2>
|
||||
|
||||
<ul>
|
||||
<li><span class="stat">Race:</span> <span class="value">{{ character.get_race_display }}</span></li>
|
||||
<li><span class="stat">Gender:</span> <span class="value">{{ character.get_gender_display }}</span></li>
|
||||
<li><span class="stat">Corporation:</span> <a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.name }}</a></span></li>
|
||||
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date|date:"Y/m/d H:i:s" }} ({{ character.corporation_date|naturaltimediff }})</span></li>
|
||||
<ul>
|
||||
<li><span class="stat">Race:</span> <span class="value">{{ character.get_race_display }}</span></li>
|
||||
<li><span class="stat">Gender:</span> <span class="value">{{ character.get_gender_display }}</span></li>
|
||||
<li><span class="stat">Corporation:</span> <a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.name }}</a></span></li>
|
||||
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date|date:"Y/m/d H:i:s" }}</span></li>
|
||||
{% if character.corporation.alliance %}
|
||||
<li><span class="stat">Alliance:</span> <span class="value"><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.name }}</a></span></li>
|
||||
<li><span class="stat">Alliance:</span> <span class="value"><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.name }}</a><span></li>
|
||||
{% endif %}
|
||||
<li><span class="stat">Security Status:</span> {{ character.security_status|floatformat:2 }}</span></li>
|
||||
<li><span class="stat">Director:</span> <span class="value">{{ character.director }}</span></li>
|
||||
<li><span class="stat">Security Status:</span> {{ character.security_status|floatformat:2 }}</span></li>
|
||||
<li><span class="stat">Director:</span> <span class="value">{{ character.director }}</span></li>
|
||||
{% if character.current_training %}
|
||||
<li><spam class="stat">Training:</span> <span class="Value">{{ character.current_training.skill.name}} to Level {{ character.current_training.in_training }}</li>
|
||||
<li><spam class="stat">Training:</span> <span class="Value">{{ character.current_training.skill.name}} to Level {{ ch$
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="span5 offset3">
|
||||
<div class="row pull-right">
|
||||
<img src="https://image.eveonline.com/Character/{{ character.id }}_256.jpg" />
|
||||
</div>
|
||||
<div class="row pull-right">
|
||||
<div class="span2">
|
||||
<div class="row">
|
||||
<span><a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.ticker }}</a></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<img src="https://image.eveonline.com/Corporation/{{ character.corporation.id }}_64.png" class="pull-right"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
{% if character.corporation.alliance %}
|
||||
<div class="row">
|
||||
<span><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.ticker }}</a></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<img src="https://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" class="pull-left"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="character_stats">
|
||||
<h2>Stats</h2>
|
||||
|
||||
|
||||
@@ -2,23 +2,29 @@
|
||||
{% load humanize %}
|
||||
{% block content %}
|
||||
|
||||
<h1>Character List</h1>
|
||||
<div class="page-header">
|
||||
<h1>Your Characters</h1>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr><th>Character Name</th><th>Corporation</th><th>Alliance</th><th>Skillpoints</th><th>Training</th></tr>
|
||||
{% for acc in accounts %}
|
||||
{% if acc.characters.count %}
|
||||
<tr><th colspan=5>Key {{ acc.pk }} {% if acc.training == 0 %}<font color="#F87217">(No Character Training)</font>{% endif %}</th></tr>
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td>
|
||||
<td><a href="{% url eveapi-corporation char.corporation.id %}">{{ char.corporation }}</a></td>
|
||||
<td>{% if char.corporation.alliance %}<a href="{% url eveapi-alliance char.corporation.alliance.id %}">{{ char.corporation.alliance }}</a>{% endif %}</td>
|
||||
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
|
||||
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<thead>
|
||||
<tr><th>Character Name</th><th>Corporation</th><th>Alliance</th><th>Skillpoints</th><th>Training</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in accounts %}
|
||||
{% if acc.characters.count %}
|
||||
<tr><th colspan=5>Key {{ acc.pk }} {% if acc.training == 0 %}<font color="#F87217">(No Character Training)</font>{% endif %}</th></tr>
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td>
|
||||
<td><a href="{% url eveapi-corporation char.corporation.id %}">{{ char.corporation }}</a></td>
|
||||
<td>{% if char.corporation.alliance %}<a href="{% url eveapi-alliance char.corporation.alliance.id %}">{{ char.corporation.alliance }}</a>{% endif %}</td>
|
||||
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
|
||||
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -3,14 +3,30 @@
|
||||
{% block title %}EVE API Access Logs{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Access Logs for API Key {{ userid }}</h1>
|
||||
<table>
|
||||
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
|
||||
{% for log in logs %}
|
||||
<tr><td>{{ log.service }}</td>
|
||||
<td>{{ log.time_access }}</td>
|
||||
<td>{{ log.document }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<div class="page-header">
|
||||
<h1>Access Logs for API Key {{ userid }}</h1>
|
||||
</div>
|
||||
|
||||
<table class="zebra-striped" id="logs">
|
||||
<thead>
|
||||
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for log in logs %}
|
||||
<tr>
|
||||
<td>{{ log.service }}</td>
|
||||
<td>{{ log.time_access }}</td>
|
||||
<td>{{ log.document }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script src="/static/js/jquery.tablesorter.min.js"></script>
|
||||
<script >
|
||||
$(function() {
|
||||
$("table#logs").tablesorter({ sortList: [[1,0]] });
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user