Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
7e2f473f
Commit
7e2f473f
authored
Apr 21, 2015
by
Daniel W Bond
Browse files
the way the panels looked all wonky as pointed out by nander
parent
40bbe0f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/list_listings.html
View file @
7e2f473f
...
...
@@ -30,6 +30,10 @@ SRCT Bookshare • Latest Listings
<div
class=
"col-md-6"
>
{% include 'listing_preview_panel.html' %}
</div>
{% if forloop.counter|divisibleby:2 %}
</div>
<div
class=
"row"
>
{% endif %}
{% endfor %}
</div>
...
...
bookshare/trades/views.py
View file @
7e2f473f
...
...
@@ -75,7 +75,7 @@ def can_rate(rater, listing):
class
ListListings
(
LoginRequiredMixin
,
ListView
):
model
=
Listing
context_object_name
=
'listings'
paginate_by
=
1
5
paginate_by
=
1
6
queryset
=
Listing
.
objects
.
exclude
(
cancelled
=
True
).
order_by
(
'-created'
)
template_name
=
'list_listings.html'
login_url
=
'login'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment