Shows if the recommendation is valid

This commit is contained in:
2010-12-23 12:04:26 +00:00
parent b389994e23
commit 11c96a57c9
3 changed files with 17 additions and 1 deletions

View File

@@ -66,8 +66,14 @@
{% 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 %}
<li><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a> / {{ rec.user_character }} - {{ rec.user_character.corporation }}</li>
<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="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>
{% endif %}