Commit 7e2f473f authored by Daniel W Bond's avatar Daniel W Bond
Browse files

the way the panels looked all wonky as pointed out by nander

parent 40bbe0f3
...@@ -30,6 +30,10 @@ SRCT Bookshare • Latest Listings ...@@ -30,6 +30,10 @@ SRCT Bookshare • Latest Listings
<div class="col-md-6"> <div class="col-md-6">
{% include 'listing_preview_panel.html' %} {% include 'listing_preview_panel.html' %}
</div> </div>
{% if forloop.counter|divisibleby:2 %}
</div>
<div class="row">
{% endif %}
{% endfor %} {% endfor %}
</div> </div>
......
...@@ -75,7 +75,7 @@ def can_rate(rater, listing): ...@@ -75,7 +75,7 @@ def can_rate(rater, listing):
class ListListings(LoginRequiredMixin, ListView): class ListListings(LoginRequiredMixin, ListView):
model = Listing model = Listing
context_object_name = 'listings' context_object_name = 'listings'
paginate_by = 15 paginate_by = 16
queryset = Listing.objects.exclude(cancelled=True).order_by('-created') queryset = Listing.objects.exclude(cancelled=True).order_by('-created')
template_name = 'list_listings.html' template_name = 'list_listings.html'
login_url = 'login' login_url = 'login'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment