Don't render snipt.code if long and not detail for raw.

master
Nick Sergeant 2015-09-28 13:30:40 -04:00
parent 9bbf64a73d
commit f912f3d0ab
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@
</a>
{% endif %}
{% endif %}
<textarea class="raw">{{ snipt.code }}</textarea>
{% if snipt.line_count <= 300 and not detail %}
<textarea class="raw">{{ snipt.code }}</textarea>
{% endif %}
<textarea class="description">{{ snipt.description }}</textarea>
</section>
{% if snipt.description and detail %}