contentmatcher/templates/matches.html

30 lines
571 B
HTML

{% extends 'partials/base.html' %}
{% block name %}matches{% endblock %}
{% block content %}
<main>
{% if list_of_matches %}
<table>
{% for match in list_of_matches %}
<TR>
<TD>
{{ match[0]['title'] }}
</TD>
<TD>
{% for card in match %}
{{ names_by_ids[card['owner_id']] }}
{% endfor %}
</TD>
<TD>
<a href="mailto:{% for card in match %}{{ emails_by_ids[card['owner_id']] }};{% endfor %}">send email</a>
</TD>
</TR>
{% endfor %}
</table>
{% else %}
<p>You have no matches at the moment.</p>
{% endif %}
</main>
{% endblock %}