Improve tags page layout and add link to profile

This commit is contained in:
rubenwardy
2020-07-15 00:54:26 +01:00
parent 15bbc35e65
commit 27dfbabe2f
2 changed files with 15 additions and 12 deletions

View File

@@ -6,21 +6,10 @@
{% block content %}
<style>
table {
width:auto;
}
td {
white-space:nowrap;
}
table td:last-child {
width: 100%;
}
</style>
<table class="table">
<tr>
<th>Package</th>
<th></th>
<th>Tags</th>
</tr>
{% for package in packages %}
@@ -32,6 +21,13 @@
by {{ package.author.display_name }}
</td>
<td>
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
<a class="btn btn-link btn-sm py-0" href="{{ package.getEditURL() }}">
<i class="fas fa-edit"></i>
</a>
{% endif %}
</td>
<td class="tags">
{% for tag in package.tags %}
<span class="badge badge-primary mr-1">{{ tag.title }}</span>