mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
New character layout
This commit is contained in:
@@ -4,43 +4,93 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>{{ character.name }}</h1>
|
||||
<div class="character_info">
|
||||
<h1>{{ character.name }}</h1>
|
||||
|
||||
<img src="http://img.eve.is/serv.asp?s=256&c={{ character.id }}"/>
|
||||
<div class="character_portrait">
|
||||
<img src="http://img.eve.is/serv.asp?s=256&c={{ character.id }}" />
|
||||
</div>
|
||||
|
||||
<div class="character_corporation">
|
||||
<span><a href="http://evemaps.dotlan.net/ajax/opensearch?q={{ character.corporation.name }}">{{ character.corporation.ticker }}</a></span>
|
||||
<img src="http://www.evecorplogo.net/logo.php?id={{ character.corporation.id }}" />
|
||||
</div>
|
||||
|
||||
<div class="character_alliance">
|
||||
<span><a href="http://evemaps.dotlan.net/ajax/opensearch?q={{ character.corporation.alliance.name }}">{{ character.corporation.alliance.ticker }}</a></span>
|
||||
<img src="http://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" />
|
||||
</div>
|
||||
|
||||
<img src="http://www.evecorplogo.net/logo.php?id={{ character.corporation.id }}" width="128" height="128" />
|
||||
<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="http://evemaps.dotlan.net/ajax/opensearch?q={{ character.corporation.name }}">{{ character.corporation.name }}</a></span></li>
|
||||
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date }}</span></li>
|
||||
<li><span class="stat">Alliance:</span> <span class="value"><a href="http://evemaps.dotlan.net/ajax/opensearch?q={{ character.corporation.alliance.name }}">{{ character.corporation.alliance.name }}</a></span></li>
|
||||
<li><span class="stat">Security Status:</span> {{ character.security_status }}</span></li>
|
||||
<li><span class="stat">Director:</span> <span class="value">{{ character.director }}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="character_stats">
|
||||
<h2>Stats</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Stat</th><th>Value</th></tr>
|
||||
<tr><td class="stat">Intelligence</td><td> {{ character.attrib_intelligence }}</td></tr>
|
||||
<tr><td class="stat">Memory</td><td>{{ character.attrib_memory }}</td></tr>
|
||||
<tr><td class="stat">Charisma</td><td>{{ character.attrib_charisma }}</td></tr>
|
||||
<tr><td class="stat">Perception</td><td>{{ character.attrib_perception }}</td></tr>
|
||||
<tr><td class="stat">Willpower</td><td>{{ character.attrib_willpower }}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>Race: {{ character.get_race_display }}</li>
|
||||
<li>Gender: {{ character.get_gender_display }}</li>
|
||||
<li>Corporation: {{ character.corporation.name }}</li>
|
||||
<li>Joined Corporation: {{ character.corporation_date }}</li>
|
||||
<li>Alliance: {{ character.corporation.alliance.name }}</li>
|
||||
<li>Security Status: {{ character.security_status }}</li>
|
||||
<li>Director: {{ character.director }}</li>
|
||||
</ul>
|
||||
<div class="character_skills">
|
||||
<h2>Skills</h2>
|
||||
|
||||
<div class="skill_controls">
|
||||
<a href=#" id="openAll">Open All</a>
|
||||
<a href=#" id="collapseAll">Collapse All</a>
|
||||
</div>
|
||||
<table>
|
||||
{% for g ,v in skills.items %}
|
||||
<tr class="skill_heading"><th colspan=3>{{ g }}</th</tr>
|
||||
{% for skill in v %}
|
||||
<tr style="display:none;"><td>{{ skill.skill.name }} </td><td>Level {{ skill.level }}</td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
<tr><th colspan=2>Total SP</th><th>{{ character.total_sp|intcomma }} SP</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr><th>Stat</th><th>Value</th></tr>
|
||||
<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>
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
<h2>Skills</h2>
|
||||
|
||||
<table width="350px">
|
||||
{% for g ,v in skills.items %}
|
||||
<tr><th colspan=3>{{ g }}</th</tr>
|
||||
{% for skill in v %}
|
||||
<tr><td>{{ skill.skill.name }} </td><td>Level {{ skill.level }}</td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
<tr><th colspan=2>Total SP</th><th>{{ character.total_sp|intcomma }} SP</td></tr>
|
||||
</table>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$(".skill_heading").bind("click", function(){
|
||||
$this = $(this);
|
||||
$this.nextUntil(".skill_heading").toggle();
|
||||
|
||||
if($this.hasClass("toggle_off")){
|
||||
$this.removeClass("toggle_off").removeClass("toggle_on");
|
||||
}else{
|
||||
$this.removeClass("toggle_on").removeClass("toggle_off");
|
||||
}
|
||||
});
|
||||
|
||||
$("#openAll").bind("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".character_skills tr").css({ display: "table-row" });
|
||||
});
|
||||
|
||||
$("#collapseAll").bind("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".character_skills tr:not(.skill_heading)").css({ display: "none" });
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js"></script>
|
||||
<script type="text/javascript" src="/media/js/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function refresh_apikey(key) {
|
||||
|
||||
Reference in New Issue
Block a user