Skip to content

Instantly share code, notes, and snippets.

@mlazowik
Last active April 10, 2018 08:10
Show Gist options
  • Save mlazowik/1cc1d1ede497d5711bea8a9e9cf495fa to your computer and use it in GitHub Desktop.
Save mlazowik/1cc1d1ede497d5711bea8a9e9cf495fa to your computer and use it in GitHub Desktop.
non-trivial blocktrans
<span class="text-danger">
{% if is_admin and post.reported_by %}
{% full_name post.reported_by as reporter_link %}
{% blocktrans trimmed %}
This post was reported by {{ reporter_link }}
{% endblocktrans %}
{% else %}
{% trans "This post was reported" %}
{% endif %}
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment