{% set pkgbasename = comment.PackageBase.Name %} {% if not comment.Deleter %} {% if request.user.has_credential(creds.COMMENT_DELETE, approved=[comment.User]) %}
{% endif %} {% if request.user.has_credential(creds.COMMENT_EDIT, approved=[comment.User]) %} {{ 'Edit comment' | tr }} {# Set the edit event listener for this link. We must do this here so that we can utilize Jinja2's values. #} {% endif %} {% if request.user.has_credential(creds.COMMENT_PIN, approved=comment.maintainers()) %} {% if comment.PinnedTS %}
{% else %}
{% endif %} {% endif %} {% elif request.user.has_credential(creds.COMMENT_UNDELETE, approved=[comment.User]) %}
{% endif %}