summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/posts/templates/posts/post_table.html6
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>