Show Snippet type in header

This commit is contained in:
Martin Mahner 2018-04-06 11:50:00 +02:00
parent 158a1f61db
commit 4f2cf9dcbc

View file

@ -18,11 +18,14 @@
{% block options %} {% block options %}
<ul id="snippetOptions"> <ul id="snippetOptions">
<li>
{% blocktrans with snippet.lexer_name as name %}{{ name }} Snippet{% endblocktrans %}
<li class="sep"></li>
<li> <li>
{% if snippet.expire_type == 1 %} {% if snippet.expire_type == 1 %}
{% blocktrans with date=snippet.expires|timeuntil %}Expires in: {{ date }}{% endblocktrans %} {% blocktrans with date=snippet.expires|timeuntil %}Expires in: {{ date }}{% endblocktrans %}
{% elif snippet.expire_type == 2 %} {% elif snippet.expire_type == 2 %}
{% trans "Snippet never expires" %} {% trans "Never expires" %}
{% elif snippet.expire_type == 3 %} {% elif snippet.expire_type == 3 %}
{% trans "One-Time snippet" %} {% trans "One-Time snippet" %}
{% endif %} {% endif %}