mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00
bootstrap_pagination: disable via comment
Wrap the is_pagination usage of bootstrap_pagination with comment/endcomment to avoid incompatible module. We will need to re-write the pagination code. Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
parent
e86a2c2610
commit
bd58fbe7df
|
@ -90,10 +90,12 @@
|
|||
<input type="submit" class="btn btn-default" name="add_all" value="Add all"></input>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if searched %}
|
||||
|
|
|
@ -62,10 +62,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if search_keyword %}
|
||||
|
|
|
@ -287,10 +287,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if searched %}
|
||||
|
|
|
@ -65,10 +65,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if search_keyword %}
|
||||
|
|
|
@ -60,10 +60,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
|
@ -105,10 +105,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>No matching layers in database.</p>
|
||||
|
|
|
@ -64,10 +64,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if search_keyword %}
|
||||
|
|
|
@ -90,10 +90,12 @@
|
|||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if search_keyword %}
|
||||
|
|
|
@ -69,10 +69,12 @@
|
|||
</div>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>No unpublished layers to review.</p>
|
||||
|
|
|
@ -54,10 +54,12 @@
|
|||
</div>
|
||||
|
||||
{% if is_paginated %}
|
||||
{% comment %}
|
||||
{% load bootstrap_pagination %}
|
||||
<div class="text-center">
|
||||
{% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
|
||||
{% endautoescape %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user