diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-15 00:54:26 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-15 00:54:26 +0100 |
| commit | 27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa (patch) | |
| tree | f157447f072fffa1580637e213b7fd2884544926 /app/templates/todo | |
| parent | 15bbc35e656421d415cd6cba8accb83a77e7d84f (diff) | |
| download | cheatdb-27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa.tar.xz | |
Improve tags page layout and add link to profile
Diffstat (limited to 'app/templates/todo')
| -rw-r--r-- | app/templates/todo/tags.html | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/app/templates/todo/tags.html b/app/templates/todo/tags.html index 04f270a..a61f77f 100644 --- a/app/templates/todo/tags.html +++ b/app/templates/todo/tags.html @@ -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> |
