mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
No „View Raw“ button when viewing a one-time snippet, since it was already deleted at this time. Closes issue #62.
This commit is contained in:
parent
ae61e6f9aa
commit
0b50fd9bd1
1 changed files with 2 additions and 0 deletions
|
@ -65,7 +65,9 @@
|
|||
{% if not snippet.is_single %}
|
||||
<a class="btn snippet-diff-trigger" href="#snippet-diff"><i class="icon-search"></i> {% trans "Compare Snippets" %}</a>
|
||||
{% endif %}
|
||||
{% if snippet.expire_type != 3 %}
|
||||
<a class="btn" href="{% url "snippet_details_raw" snippet.secret_id %}"><i class="icon-align-left"></i> {% trans "View Raw" %}</a>
|
||||
{% endif %}
|
||||
<a class="btn" href="{% url "snippet_gist" snippet.secret_id %}"
|
||||
rel="nofollow" title="Create a secret Gist"><i class="icon-share"></i> {% trans "Gist" %}</a>
|
||||
{% if snippet.lexer != 'text' %}
|
||||
|
|
Loading…
Reference in a new issue