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:
Martin Mahner 2014-06-08 20:24:59 +02:00
parent ae61e6f9aa
commit 0b50fd9bd1

View file

@ -65,7 +65,9 @@
{% if not snippet.is_single %} {% if not snippet.is_single %}
<a class="btn snippet-diff-trigger" href="#snippet-diff"><i class="icon-search"></i> {% trans "Compare Snippets" %}</a> <a class="btn snippet-diff-trigger" href="#snippet-diff"><i class="icon-search"></i> {% trans "Compare Snippets" %}</a>
{% endif %} {% 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> <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 %}" <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> rel="nofollow" title="Create a secret Gist"><i class="icon-share"></i> {% trans "Gist" %}</a>
{% if snippet.lexer != 'text' %} {% if snippet.lexer != 'text' %}