mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
115 lines
5.0 KiB
HTML
115 lines
5.0 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
|
{% load naturaltimediff %}
|
|
{% block content %}
|
|
|
|
<div class="page-header">
|
|
<h1>{{ character.name }}</h1>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="span8">
|
|
<h2>Attributes</h2>
|
|
|
|
<ul>
|
|
<li><span class="stat">Race:</span> <span class="value">{{ character.get_race_display }}</span></li>
|
|
{% if character.gender %}<li><span class="stat">Gender:</span> <span class="value">{{ character.get_gender_display }}</span></li>{% endif %}
|
|
<li><span class="stat">Corporation:</span> <a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.name }}</a></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>{% endif %}
|
|
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date|date:"Y/m/d H:i:s" }}</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> {% if character.director %}(<a href="https://support.eveonline.com/api/Key/CreatePredefined/1968409/{{ character.id }}/true">Create a corporation API key</a>){% endif %}</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 }}</span></li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% if character.attrib_intelligence %}
|
|
<h2>Stats</h2>
|
|
<table class="zebra-striped" id="stats">
|
|
<tbody>
|
|
<tr><td>Intelligence</td><td> {{ character.attrib_intelligence }}</td></tr>
|
|
<tr><td>Memory</td><td>{{ character.attrib_memory }}</td></tr>
|
|
<tr><td>Charisma</td><td>{{ character.attrib_charisma }}</td></tr>
|
|
<tr><td>Perception</td><td>{{ character.attrib_perception }}</td></tr>
|
|
<tr><td>Willpower</td><td>{{ character.attrib_willpower }}</td></tr>
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</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="span5">
|
|
{% if character.corporation.alliance %}
|
|
<img src="https://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" class="pull-right" title="{{ character.corporation.alliance }} ({{ character.corporation.alliance.ticker }})"/>
|
|
{% endif %}
|
|
<img src="https://image.eveonline.com/Corporation/{{ character.corporation.id }}_64.png" class="pull-right" title="{{ character.corporation }} ({{ character.corporation.ticker }})"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if skillTree %}
|
|
<h2>Skills</h2>
|
|
|
|
<p>
|
|
<a href=#" id="openAll" class="btn">Open All</a>
|
|
<a href=#" id="collapseAll" class="btn">Collapse All</a>
|
|
</p>
|
|
|
|
<table>
|
|
{% for group in skillTree %}
|
|
{{group.items}}
|
|
<tr class="fill skill_heading" id="{{ group.1 }}"><th colspan=2>{{ group.1 }}</th><th>{{ group.0|intcomma }} SP</th></tr>
|
|
{% for skill in group.2 %}
|
|
{% if skill.in_training %}
|
|
<tr class="child intraining" parent="{{ group.1 }}"><td>{{ skill.skill.name }} - Training to Level {{ skill.in_training }}</td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}t.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
|
{% else %}
|
|
<tr class="child" parent="{{ group.1 }}"><td>{{ skill.skill.name }} </td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
<tr><th colspan=2>Total SP</th><th>{{ character.total_sp|intcomma }} SP</th></tr>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if employmenthistory.count %}
|
|
<h2>Employment History</h2>
|
|
|
|
<table class="zebra-striped">
|
|
<thead>
|
|
<tr><th>Corporation</th><th>Join Date</th><th>Leave Date</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for hist in employmenthistory %}
|
|
<tr><td><a href="{% url eveapi-corporation hist.corporation.id %}">{{ hist.corporation.name }}</a></td><td>{{ hist.start_date }}</td><td>{% if hist.end_date %}{{ hist.end_date }}{% endif %}</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(".skill_heading")
|
|
.css("cursor", "pointer")
|
|
.attr("title", "Click to expand/collapse section")
|
|
.click(function(){ $('tr[parent$=' + $(this).attr('id') + ']').toggle(); });
|
|
$("#openAll").bind("click", function(e){
|
|
e.preventDefault();
|
|
$(".child").show();
|
|
});
|
|
$("#collapseAll").bind("click", function(e){
|
|
e.preventDefault();
|
|
$(".child").hide();
|
|
});
|
|
$('tr[parent]').hide();
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|