Fix favorite icon compact view and up the pagination to 20.
parent
cbfb83157f
commit
357dc6f4b1
|
@ -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 %}
|
||||
|
|
|
@ -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
|
@ -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 {
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue