From 8bcbe8d4cfd7865883d1d7084eb50fad15b29833 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 28 Sep 2015 13:32:18 -0400 Subject: [PATCH] Don't render snipt.code if long and not detail for raw. --- snipts/templates/snipts/snipt-list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snipts/templates/snipts/snipt-list.html b/snipts/templates/snipts/snipt-list.html index 383ac05..663dedf 100644 --- a/snipts/templates/snipts/snipt-list.html +++ b/snipts/templates/snipts/snipt-list.html @@ -97,7 +97,7 @@ {% endif %} {% endif %} - {% if snipt.line_count <= 300 and not detail %} + {% if snipt.line_count <= 300 or detail %} {% endif %} @@ -233,6 +233,8 @@
/api/public/snipt/{{ snipt.pk }}/
{% endif %}
{{ snipt.slug }}
-
{{ snipt.stylized }}
+ {% if snipt.line_count <= 300 or detail %} +
{{ snipt.stylized }}
+ {% endif %}
{{ snipt.tags_list }}