diff options
author | luxagraf <sng@luxagraf.net> | 2023-11-01 11:34:21 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-11-01 11:34:21 -0400 |
commit | 6fd1d244ed604df14de86a33c3298cca5da510c6 (patch) | |
tree | df56e0488a8fe675775ac6882a41c3964c25a6e2 | |
parent | 1085c0224b3fd3394c96bb044d2575f642501906 (diff) |
posts: cleaned up table view
-rw-r--r-- | app/posts/templates/posts/post_table.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/posts/templates/posts/post_table.html b/app/posts/templates/posts/post_table.html index 268e88d..ef7785f 100644 --- a/app/posts/templates/posts/post_table.html +++ b/app/posts/templates/posts/post_table.html @@ -47,10 +47,10 @@ Date last pub {{object.url|truncatechars:45}} </a> </td> - <td class="field-admin_url"> + <td class="field-admin_url">{% if object.edit_url %} <a target="_blank" href="{{object.edit_url}}"> - {{object.edit_url|truncatechars:45}} - </a> + edit + </a>{%else%}<a href="{% url 'posts:edit' object.pk %}">add</a>{%endif%} </td> <td class="field-date_last_pub nowrap">{{object.date_last_pub}}</td> <td class="field-post_type"><span class="hide">{{object.post_type}}</span>{{object.get_post_type_display}}</td> |