diff --git a/snipts/templates/snipts/snipt-list.html b/snipts/templates/snipts/snipt-list.html index b151483..ca06a38 100644 --- a/snipts/templates/snipts/snipt-list.html +++ b/snipts/templates/snipts/snipt-list.html @@ -1,4 +1,4 @@ -{% load humanize snipt_tags %} +{% load humanize snipt_tags truncate_lines %} {% snipt_is_favorited_by_user as 'is_favorited' %} @@ -57,7 +57,26 @@ {% else %} - {{ snipt.stylized|safe }} + {% if snipt.line_count > 300 and not detail %} +
+
+
+
+ |
+
+
+
+ {{ snipt.code|truncate_lines }}
+ |
+