diff --git a/files/templates/component/comment/actions_desktop.html b/files/templates/component/comment/actions_desktop.html index db7a15f7a..b6bb7505d 100644 --- a/files/templates/component/comment/actions_desktop.html +++ b/files/templates/component/comment/actions_desktop.html @@ -41,7 +41,7 @@ {% if c.post %} {%- set url = c.sticky_api_url(v) -%} - {% if url != "" %} + {% if url %} {% endif %} diff --git a/files/templates/component/comment/actions_mobile.html b/files/templates/component/comment/actions_mobile.html index 8b5f047cb..0279164a0 100644 --- a/files/templates/component/comment/actions_mobile.html +++ b/files/templates/component/comment/actions_mobile.html @@ -47,7 +47,7 @@ {% endif %} {% if v.admin_level < 2 %} - {% if c.post and v.id == c.post.author_id %} + {% if c.post and v.id == c.post.author_id and c.sticky_api_url == 'pin_comment' %} Pin Unpin {% endif %} diff --git a/files/templates/component/comment/actions_mobile_admin.html b/files/templates/component/comment/actions_mobile_admin.html index bfe72e099..cc7375dcf 100644 --- a/files/templates/component/comment/actions_mobile_admin.html +++ b/files/templates/component/comment/actions_mobile_admin.html @@ -14,10 +14,10 @@ Distinguish Undistinguish {% endif %} - + {%- if c.sticky_api_url == 'sticky_comment' -%} Pin Unpin - + {%- endif -%} Mark +18 Unmark +18 {% endif %}