2018-07-17 09:44:20 +02:00
|
|
|
<html>
|
|
|
|
<body>
|
2018-07-17 10:00:02 +02:00
|
|
|
<h2>{{data.name}} by <a href="{{url_for('get_user', id=data.achieved_by)}}">{{ data.achieved_by }} </a></h2>
|
2018-07-17 09:44:20 +02:00
|
|
|
<ul>
|
|
|
|
{% for endorser in data.endorsed_by -%}
|
2018-07-17 09:56:02 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{url_for('get_user', id=endorser.id)}}">{{ endorser.id }} </a>
|
|
|
|
</li>
|
2018-07-17 09:44:20 +02:00
|
|
|
{% endfor -%}
|
2018-07-17 09:56:02 +02:00
|
|
|
{% if endorsed -%}
|
|
|
|
<li>
|
|
|
|
<a href="{{url_for('unendorse_achievement', id=data.id)}}">Unendorse</a>
|
|
|
|
</li>
|
|
|
|
{% else -%}
|
|
|
|
<li>
|
|
|
|
<a href="{{url_for('endorse_achievement', id=data.id)}}">Endorse</a>
|
|
|
|
</li>
|
|
|
|
{% endif -%}
|
2018-07-17 09:44:20 +02:00
|
|
|
</ul>
|
|
|
|
</body>
|
|
|
|
</html>
|