mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Show Snippet type in header
This commit is contained in:
parent
158a1f61db
commit
4f2cf9dcbc
1 changed files with 4 additions and 1 deletions
|
@ -18,11 +18,14 @@
|
|||
|
||||
{% block options %}
|
||||
<ul id="snippetOptions">
|
||||
<li>
|
||||
{% blocktrans with snippet.lexer_name as name %}{{ name }} Snippet{% endblocktrans %}
|
||||
<li class="sep"></li>
|
||||
<li>
|
||||
{% if snippet.expire_type == 1 %}
|
||||
{% blocktrans with date=snippet.expires|timeuntil %}Expires in: {{ date }}{% endblocktrans %}
|
||||
{% elif snippet.expire_type == 2 %}
|
||||
{% trans "Snippet never expires" %}
|
||||
{% trans "Never expires" %}
|
||||
{% elif snippet.expire_type == 3 %}
|
||||
{% trans "One-Time snippet" %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue