diff --git a/templates/admin.html b/templates/admin.html
index 1573220..f087724 100755
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -293,6 +293,8 @@
data-oldname="{{ file.name | e }}">
Edit
+ {% else %}
+
{% endif %}
diff --git a/templates/priority.html b/templates/priority.html
index ea3cc48..4bc3995 100644
--- a/templates/priority.html
+++ b/templates/priority.html
@@ -195,6 +195,8 @@
data-oldname="{{ file.name | e }}">
Edit
+ {% else %}
+
{% endif %}