fixed campaign_lists

pull/1/head
eric 2012-02-29 13:23:32 -05:00
parent 094f4e56ee
commit d6e56d3c17
1 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,10 @@
<link type="text/css" rel="stylesheet" href="/static/css/book_panel.css" /> <link type="text/css" rel="stylesheet" href="/static/css/book_panel.css" />
{% endblock %} {% endblock %}
{% block extra_head %} {% block extra_head %}
<script>
location.hash = "#2";
</script>
<script type="text/javascript" src="/static/js/wishlist.js"></script> <script type="text/javascript" src="/static/js/wishlist.js"></script>
<script type="text/javascript" src={{ jquery_ui_home }}></script> <script type="text/javascript" src={{ jquery_ui_home }}></script>
<script type="text/javascript" src="/static/js/greenpanel.js"></script> <script type="text/javascript" src="/static/js/greenpanel.js"></script>
@ -83,7 +87,8 @@
{% ifequal campaign_list.count 0 %} {% ifequal campaign_list.count 0 %}
There aren't any ungluing campaigns active yet. If you're a rights holder, you can <a href="/faq/rightsholders">start one</a>. There aren't any ungluing campaigns active yet. If you're a rights holder, you can <a href="/faq/rightsholders">start one</a>.
{% else %} {% else %}
{% paginate 20 campaign_list %} {% lazy_paginate 20 campaign_list using "campaign_list" %}
{% for campaign in campaign_list %} {% for campaign in campaign_list %}
<div class="{% cycle 'row1' 'row2' %}"> <div class="{% cycle 'row1' 'row2' %}">
{% with campaign.status as status %} {% with campaign.status as status %}
@ -95,8 +100,11 @@
</div> </div>
{% endfor %} {% endfor %}
<br> <br>
<div class="pagination content-block-heading"> <div class="pagination content-block-heading tabs-1">
{% show_pages %} {% get_pages %}
{% for page in pages %}
<a href="{{ page.path }}#1">{{ page.number }}</a>
{% endfor %}
</div> </div>
{% endifequal %} {% endifequal %}
{% endif %} {% endif %}