diff --git a/files/templates/comments.html b/files/templates/comments.html index 2624f1686..f4ab70732 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -292,9 +292,11 @@
  • Edit
  • -
  • Delete
  • - -
  • Undelete
  • + {% if c.deleted_utc > 0 %} +
  • Undelete
  • + {% else %} +
  • Delete
  • + {% endif %} {% endif %} @@ -447,9 +449,11 @@ {% if v and c.parent_submission and c.author_id==v.id %}
  • Edit
  • -
  • Delete
  • - -
  • Undelete
  • + {% if c.deleted_utc > 0 %} +
  • Undelete
  • + {% else %} +
  • Delete
  • + {% endif %} {% endif %} {% if v and c.post and (v.admin_level >= 1 or v.id == c.post.author_id) and c.level == 1 %} diff --git a/files/templates/submission.html b/files/templates/submission.html index ca06ea9c3..038f6ed5a 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -112,8 +112,11 @@ - - + {% if p.deleted_utc > 0 %} + + {% else %} + + {% endif %} {% endif %} @@ -434,8 +437,11 @@
  • Pin to profile
  • Unpin from profile
  • -
  • Delete
  • -
  • Undelete
  • + {% if p.deleted_utc > 0 %} +
  • Undelete
  • + {% else %} +
  • Delete
  • + {% endif %} {% endif %} {% if v and v.admin_level>=3 %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index ee6b4c4e4..897f8cb61 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -159,9 +159,12 @@
  • Pin to profile
  • Unpin from profile
  • -
  • Delete
  • -
  • Undelete
  • - {% endif %} + {% if p.deleted_utc > 0 %} +
  • Undelete
  • + {% else %} +
  • Delete
  • + {% endif %} + {% endif %} {% if v and v.admin_level>=3 %} @@ -301,8 +304,11 @@ - - + {% if p.deleted_utc > 0 %} + + {% else %} + + {% endif %} {% endif %}