diff mbox series

[layerindex-web,04/10] bootstrap_pagination: disable via comment

Message ID bd58fbe7df84fc79dde79785f893ec9656da5a7c.1696621423.git.tim.orling@konsulko.com
State New
Headers show
Series Django 4.2 LTS Upgrade | expand

Commit Message

Tim Orling Oct. 6, 2023, 7:59 p.m. UTC
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>
---
 templates/layerindex/bulkchangesearch.html | 2 ++
 templates/layerindex/classes.html          | 2 ++
 templates/layerindex/classicrecipes.html   | 2 ++
 templates/layerindex/distros.html          | 2 ++
 templates/layerindex/history.html          | 2 ++
 templates/layerindex/layers.html           | 2 ++
 templates/layerindex/machines.html         | 2 ++
 templates/layerindex/recipes.html          | 2 ++
 templates/layerindex/reviewlist.html       | 2 ++
 templates/layerindex/updatelist.html       | 2 ++
 10 files changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/templates/layerindex/bulkchangesearch.html b/templates/layerindex/bulkchangesearch.html
index 7f6b8c9..e8d6bd8 100644
--- a/templates/layerindex/bulkchangesearch.html
+++ b/templates/layerindex/bulkchangesearch.html
@@ -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 %}
diff --git a/templates/layerindex/classes.html b/templates/layerindex/classes.html
index bd3b67d..bc3d0ac 100644
--- a/templates/layerindex/classes.html
+++ b/templates/layerindex/classes.html
@@ -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 %}
diff --git a/templates/layerindex/classicrecipes.html b/templates/layerindex/classicrecipes.html
index deedbbb..cf911a5 100644
--- a/templates/layerindex/classicrecipes.html
+++ b/templates/layerindex/classicrecipes.html
@@ -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 %}
diff --git a/templates/layerindex/distros.html b/templates/layerindex/distros.html
index 549257b..0c1b276 100644
--- a/templates/layerindex/distros.html
+++ b/templates/layerindex/distros.html
@@ -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 %}
diff --git a/templates/layerindex/history.html b/templates/layerindex/history.html
index 3c80d92..9ae4431 100644
--- a/templates/layerindex/history.html
+++ b/templates/layerindex/history.html
@@ -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 %}
 
 
diff --git a/templates/layerindex/layers.html b/templates/layerindex/layers.html
index 3e6a4b3..ae9befb 100644
--- a/templates/layerindex/layers.html
+++ b/templates/layerindex/layers.html
@@ -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>
diff --git a/templates/layerindex/machines.html b/templates/layerindex/machines.html
index ebbc158..685506d 100644
--- a/templates/layerindex/machines.html
+++ b/templates/layerindex/machines.html
@@ -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 %}
diff --git a/templates/layerindex/recipes.html b/templates/layerindex/recipes.html
index a1878fa..9c15e6c 100644
--- a/templates/layerindex/recipes.html
+++ b/templates/layerindex/recipes.html
@@ -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 %}
diff --git a/templates/layerindex/reviewlist.html b/templates/layerindex/reviewlist.html
index f72787a..18e0d78 100644
--- a/templates/layerindex/reviewlist.html
+++ b/templates/layerindex/reviewlist.html
@@ -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>
diff --git a/templates/layerindex/updatelist.html b/templates/layerindex/updatelist.html
index f4f786a..b68a860 100644
--- a/templates/layerindex/updatelist.html
+++ b/templates/layerindex/updatelist.html
@@ -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 %}