pagination etc to work

This commit is contained in:
Sanj 2012-06-01 00:21:01 +05:30
parent 76f3835eac
commit f7f932d1d0
2 changed files with 8 additions and 2 deletions

View File

@ -340,6 +340,8 @@ class ItfModel(models.Model):
return {
'has_next': results.has_next(),
'has_previous': results.has_previous(),
'page_no': page_no,
'num_pages': paginator.num_pages,
'items': ret

View File

@ -6,11 +6,15 @@
<link rel="stylesheet" href="/static/css/noel/inner.css" type="text/css" />
<link rel="stylesheet" href="/static/css/noel/inner-details.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="/static/css/jquery.tooltip.css" />
<link rel="canonical" href="{{ item.get_absolute_url }}" />
<!--
<script type="text/javascript" src="/static/js/history/history.js"></script>
<script type="text/javascript" src="/static/js/history/amplify.store.js"></script>
<script type="text/javascript" src="/static/js/history/history.html4.js"></script>
<script type="text/javascript" src="/static/js/history/history.adapter.jquery.js"></script>
<script type="text/javascript" src="/static/js/query_parser.js"></script>
-->
<script type="text/javascript" src="/static/js/jquery.tooltip.js"></script>
<script type="text/javascript" src="/static/js/render_object.js"></script>
<script type="text/javascript" src="/static/js/jquery.pandoravideo.js"></script>
@ -150,8 +154,8 @@
</div>
</div>
<div id="triangleUp">prev</div>
<div id="triangleDown">next</div>
{% if object_list.has_previous %} <div id="triangleUp">prev</div> {% endif %}
{% if object_list.has_next %} <div id="triangleDown">next</div> {% endif %}
<div class="clear"></div>