From a22cc141654958eff82fdb244de4e89368b3b230 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Tue, 15 May 2012 00:41:05 -0400 Subject: [PATCH] Don't collapse snipts on blog' --- media/css/style.scss | 7 +++++++ snipts/templates/snipts/list.html | 2 ++ snipts/templates/snipts/snipt-list.html | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/media/css/style.scss b/media/css/style.scss index a054fb7..3d41dda 100644 --- a/media/css/style.scss +++ b/media/css/style.scss @@ -1357,3 +1357,10 @@ body.api { } } } +body.blog { + article.snipt { + section.code { + height: auto; + } + } +} diff --git a/snipts/templates/snipts/list.html b/snipts/templates/snipts/list.html index 4f6645e..bba6f4e 100644 --- a/snipts/templates/snipts/list.html +++ b/snipts/templates/snipts/list.html @@ -2,6 +2,8 @@ {% load pagination_tags %} +{% block body-class %}{{ block.super }}{% if user.username == 'blog' %} blog{% endif %}{% endblock %} + {% block page-title %}/ {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %} {% block js %} diff --git a/snipts/templates/snipts/snipt-list.html b/snipts/templates/snipts/snipt-list.html index 5ff3d48..3b22250 100644 --- a/snipts/templates/snipts/snipt-list.html +++ b/snipts/templates/snipts/snipt-list.html @@ -2,7 +2,7 @@ {% snipt_is_favorited_by_user as 'is_favorited' %} -
+
#{{ snipt.pk }}
@@ -18,7 +18,7 @@ {% else %} {{ snipt.stylized|safe }} {% endif %} - {% if snipt.line_count > 8 and not detail %} + {% if snipt.line_count > 8 and not detail and user.username != 'blog' %} Expand Collapse