Updated the Application view template, make it a tad easier to read

This commit is contained in:
2010-10-13 11:27:11 +01:00
parent 7d88b20d02
commit a99fbf47d2

View File

@@ -74,20 +74,33 @@
{% if hrstaff %} {% if hrstaff %}
<h3>EVE Characters</h3> <h3>EVE Characters</h3>
<ul> <ul>
<table>
<tr><th>Character</th><th>Corp / Alliance</th></th><th>ISK</th><th>SP</th><th>Links</th></tr>
{% for acc in app.user.eveaccount_set.all %} {% for acc in app.user.eveaccount_set.all %}
{% for char in acc.characters.all %} {% for char in acc.characters.all %}
<li><a href="{% url sso.views.characters char.id %}">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance|intcomma }} ISK, {{ char.total_sp|intcomma }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button> - <a href="https://gate.eveonline.com/Profile/{{ char.name }}/">EveGate Profile</a></li> <tr><td><a href="{% url sso.views.characters char.id %}">{{ char.name }}</a></td>
<td>{{ char.corporation }} / {{ char.corporation.alliance }}</td>
<td>{{ char.balance|intcomma }} ISK</td>
<td>{{ char.total_sp|intcomma }} SP</td>
<td><button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button> / <a href="https://gate.eveonline.com/Profile/{{ char.name }}/">EveGate Profile</a></td>
</tr>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
</ul> </ul>
{% if app.user.redditaccount_set.all %} {% if app.user.redditaccount_set.all %}
<h3>Reddit Accounts</h3> <h3>Reddit Accounts</h3>
<ul> <table>
<tr><th>Account</th><th>Karma</th><th>Validated</th><th>Creation Date</th></tr>
{% for acc in app.user.redditaccount_set.all %} {% for acc in app.user.redditaccount_set.all %}
<li><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a>{% if acc.validated %} - Validated{%else %} - <b>NOT VALIDATED</b>{% endif %} - {{ acc.date_created }}</li> <tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
<td>{{ acc.link_karma }} / {{ acc.comment_karma }}</td>
<td>{% if acc.validated %}Validated{%else %}<b>NOT VALIDATED</b>{% endif %}</td>
<td>{{ acc.date_created }}</td>
</tr>
{% endfor %} {% endfor %}
</ul> </table>
<h3>Reddit Posts</h3> <h3>Reddit Posts</h3>
<ul> <ul>