contentmatcher/templates/matches.html

48 lines
964 B
HTML
Raw Normal View History

2022-06-14 02:17:58 +02:00
{% extends 'base.html' %}
{% block header %}
<head>Matches</head>
2022-06-16 08:18:06 +02:00
{% endblock %}
2022-06-15 11:22:41 +02:00
{% block content %}
{% if list_of_matches %}
2022-06-16 08:18:06 +02:00
<table>
<style>
table {
border-collapse: collapse;
table-layout: fixed;
width: 90%;
}
table td {
border: solid 1px #666;
width: felx;
word-wrap: break-word;
}
</style>
2022-06-14 13:24:40 +02:00
<tr>
<th>Title</th>
<th>Users</th>
2022-06-15 02:56:47 +02:00
<th>Action</th>
2022-06-14 13:24:40 +02:00
</tr>
2022-06-15 02:56:47 +02:00
{% for match in list_of_matches %}
2022-06-14 13:24:40 +02:00
<TR>
<TD>
{{ match[0]['title'] }}
</TD>
<TD>
{% for card in match %}
{{ names_by_ids[card['owner_id']] }}
{% endfor %}
</TD>
2022-06-15 02:56:47 +02:00
<TD>
2022-06-23 22:08:13 +02:00
<a href="mailto:{% for card in match %}{{ emails_by_ids[card['owner_id']] }};{% endfor %}">send email</a>
2022-06-15 02:56:47 +02:00
</TD>
2022-06-14 13:24:40 +02:00
</TR>
2022-06-14 02:17:58 +02:00
{% endfor %}
2022-06-14 13:24:40 +02:00
</table>
2022-06-14 02:17:58 +02:00
{% else %}
<p>You have no matches at the moment</p>
{% endif %}
{% endblock %}