From 80f5095005b2da138bc2c60e7bf821d8681ef9ce Mon Sep 17 00:00:00 2001
From: nd <git@notandy.de>
Date: Mon, 5 Apr 2021 17:22:12 +0200
Subject: [PATCH] condense mail list

---
 uffd/mail/templates/mail_list.html | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

diff --git a/uffd/mail/templates/mail_list.html b/uffd/mail/templates/mail_list.html
index 84468951..f994b140 100644
--- a/uffd/mail/templates/mail_list.html
+++ b/uffd/mail/templates/mail_list.html
@@ -3,19 +3,17 @@
 {% block body %}
 <div class="row">
 	<div class="col">
+		<p class="text-right">
+			<a class="btn btn-primary" href="{{ url_for("mail.show") }}">
+				<i class="fa fa-plus" aria-hidden="true"></i> New
+			</a>
+		</p>
 		<table class="table table-striped table-sm">
 			<thead>
 				<tr>
 					<th scope="col">name</th>
 					<th scope="col">receiving address</th>
 					<th scope="col">destinations</th>
-					<th scope="col">
-						<p class="text-right">
-							<a class="btn btn-primary" href="{{ url_for("mail.show") }}">
-								<i class="fa fa-plus" aria-hidden="true"></i> New
-							</a>
-						</p>
-					</th>
 				</tr>
 			</thead>
 			<tbody>
@@ -27,26 +25,19 @@
 						</a>
 					</th>
 					<td>
-						<ul>
+						<ul class="m-0">
 							{% for i in mail.receivers %}
 							<li>{{ i }}</li>
 							{% endfor %}
 						</ul>
 					</td>
 					<td>
-						<ul>
+						<ul class="m-0">
 							{% for i in mail.destinations %}
 							<li>{{ i }}</li>
 							{% endfor %}
 						</ul>
 					</td>
-					<td>
-						<p class="text-right">
-							<a href="{{ url_for("mail.show", uid=mail.uid) }}" class="btn btn-primary">
-								<i class="fa fa-edit" aria-hidden="true"></i> Edit
-							</a>
-						</p>
-					</td>
 				</tr>
 				{% endfor %}
 			</tbody>
-- 
GitLab