diff options
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> |
