Various template updates from live

This commit is contained in:
2011-01-04 21:29:37 +00:00
parent 266d236068
commit 4797c7df65
2 changed files with 8 additions and 9 deletions

View File

@@ -45,10 +45,10 @@
{% if audit %}
<h3>Event Log</h3>
<table>
<tr><th>Event Type</th><th>User</th><th>Date</th><th>Event Details</th></tr>
<table width="100%">
<tr><th width="50px">Event Type</th><th width="75px">User</th><th width="50px">Date</th><th>Event Details</th></tr>
{% for a in audit %}
<tr><td>{{ a.get_event_display }}</td><td>{{ a.user }}</td><td>{{ a.date }}</td><td>{{ a.text }}</td></tr>
<tr><td>{{ a.get_event_display }}</td><td>{{ a.user }}</td><td>{{ a.date|date:"Y/m/d H:i:s" }}</td><td>{{ a.text|linebreaks }}</td></tr>
{% endfor %}
</table>
{% endif %}
@@ -65,17 +65,16 @@
{% if app.recommendation_set.all %}
<h3>Recommendations</h3>
<ul>
<table>
<tr><th>User</th><th>Character</th><th>Corporation</th><th>Valid Recommendation</th></tr>
{% for rec in app.recommendation_set.all %}
<tr><td><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a></td>
<td><a href="{% sso.views.characters rec.user_character.id %}">{{ rec.user_character }}</a></td>
<td><a href="{% url sso.views.characters rec.user_character.id %}">{{ rec.user_character }}</a></td>
<td><a href="http://evemaps.dotlan.net/corp/{{ rec.user_character.corporation.name }}">{{ rec.user_character.corporation }}</a></td>
<td>{% if rec.is_valid %}<font color="green">Yes</font>{% else %}<font color="red">No</font>{% endif %}</td>
</tr>
{% endfor %}
</ul>
</table>
{% endif %}
{% if hrstaff %}