From 531c5e16cbdd9a4562e3be20252f84b285c243d8 Mon Sep 17 00:00:00 2001
From: nd <git@notandy.de>
Date: Mon, 5 Apr 2021 17:22:37 +0200
Subject: [PATCH] condense role list

---
 uffd/role/templates/role_list.html | 27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

diff --git a/uffd/role/templates/role_list.html b/uffd/role/templates/role_list.html
index 1e2f31fa..54b5a7d6 100644
--- a/uffd/role/templates/role_list.html
+++ b/uffd/role/templates/role_list.html
@@ -3,19 +3,17 @@
 {% block body %}
 <div class="row">
 	<div class="col">
-		<table class="table table-striped">
+		<p class="text-right">
+			<a class="btn btn-primary" href="{{ url_for("role.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">id</th>
+					<th scope="col">roleid</th>
 					<th scope="col">name</th>
 					<th scope="col">description</th>
-					<th scope="col">
-						<p class="text-right">
-							<a class="btn btn-primary" href="{{ url_for("role.show") }}">
-								<i class="fa fa-plus" aria-hidden="true"></i> New
-							</a>
-						</p>
-					</th>
 				</tr>
 			</thead>
 			<tbody>
@@ -25,18 +23,13 @@
 						{{ role.id }}
 					</td>
 					<th scope="row">
-						{{ role.name }}
+						<a href="{{ url_for("role.show", roleid=role.id) }}">
+							{{ role.name or '<empty name>' }}
+						</a>
 					</th>
 					<td>
 						{{ role.description }}
 					</td>
-					<td>
-						<p class="text-right">
-							<a href="{{ url_for("role.show", roleid=role.id) }}" class="btn btn-primary">
-								<i class="fa fa-edit" aria-hidden="true"></i> Edit
-							</a>
-						</p>
-					</td>
 				</tr>
 				{% endfor %}
 			</tbody>
-- 
GitLab