Fix favorite icon compact view and up the pagination to 20.

master
Nick Sergeant 2013-10-19 00:04:23 -04:00
parent cbfb83157f
commit 357dc6f4b1
7 changed files with 15 additions and 6 deletions

View File

@ -11,7 +11,7 @@
{% block content %}
<section class="snipts" id="snipts">
{% autopaginate snipts 10 %}
{% autopaginate snipts 20 %}
{% for snipt in snipts %}
{% include "blogs/themes/default/snipt-list.html" %}
{% empty %}

View File

@ -5,7 +5,7 @@
{% block body-class %}list{% endblock %}
{% block content %}
{% autopaginate snipts 10 %}
{% autopaginate snipts 20 %}
{% for snipt in snipts %}
{% include "blogs/themes/pro-adams/snipt-list.html" %}
{% endfor %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1303,6 +1303,14 @@ article.snipt {
}
}
}
&.compact {
div.container {
header {
@include vertical-gradient-with-image(url('../img/favorited-icon.png') right -12px no-repeat, #FFF, #FFFAF2);
background-size: 25px 37px;
}
}
}
}
&.blog-post {
div.container {

View File

@ -13,7 +13,7 @@
{% block content %}
<section class="snipts" id="snipts" ng-controller="SniptListController">
{% autopaginate snipts 10 %}
{% autopaginate snipts 20 %}
{% for snipt in snipts %}
{% include "snipts/snipt-list.html" %}
{% empty %}

View File

@ -17,7 +17,8 @@ from haystack.forms import ModelSearchForm
from haystack.query import EmptySearchQuerySet, SearchQuerySet
RESULTS_PER_PAGE = getattr(settings, 'HAYSTACK_SEARCH_RESULTS_PER_PAGE', 10)
RESULTS_PER_PAGE = getattr(settings, 'HAYSTACK_SEARCH_RESULTS_PER_PAGE', 20)
@render_to('snipts/detail.html')
def detail(request, username, snipt_slug):