Don't collapse snipts on blog'

master
Nick Sergeant 2012-05-15 00:41:05 -04:00
parent 768d5715db
commit a22cc14165
3 changed files with 11 additions and 2 deletions

View File

@ -1357,3 +1357,10 @@ body.api {
}
}
}
body.blog {
article.snipt {
section.code {
height: auto;
}
}
}

View File

@ -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 %}

View File

@ -2,7 +2,7 @@
{% snipt_is_favorited_by_user as 'is_favorited' %}
<article id="snipt-{{ snipt.pk }}" class="snipt{% if not snipt.public %} private-snipt{% endif %}{% if snipt.line_count > 8 and not detail %} expandable{% endif %}{% if snipt.user == request.user %} editable{% endif %}{% if is_favorited %} favorited" data-favorite-id="{{ is_favorited }}"{% else %}"{% endif %}>
<article id="snipt-{{ snipt.pk }}" class="snipt{% if not snipt.public %} private-snipt{% endif %}{% if snipt.line_count > 8 and not detail and user.username != 'blog' %} expandable{% endif %}{% if snipt.user == request.user %} editable{% endif %}{% if is_favorited %} favorited" data-favorite-id="{{ is_favorited }}"{% else %}"{% endif %}>
<div class="number">#{{ snipt.pk }}</div>
<div class="group">
<div class="container">
@ -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' %}
<a href="#" class="expand">
<span class="expand">Expand</span>
<span class="collapse">Collapse</span>