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 %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue