mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Port to Django 5.2
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% if page_title and not request.is_ajax %}
|
||||
{% if page_title and not is_ajax %}
|
||||
<h2>{{page_title|safe}}</h2>
|
||||
{% endif %}
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
{% include associated2|safe %}
|
||||
{% endif %}
|
||||
|
||||
{% if not request.is_ajax %}
|
||||
{% if not is_ajax %}
|
||||
<div class="row py-2">
|
||||
<div class="col-sm-12 text-right">
|
||||
{% if can_edit %}
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% if request.is_ajax %}
|
||||
{% if is_ajax %}
|
||||
{% block footer %}
|
||||
<div class="row py-2">
|
||||
<div class="col-sm-12 text-right">
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
{% endif %}
|
||||
|
||||
{% for page in page_numbers %}
|
||||
{% ifequal page page_obj.number %}
|
||||
{% if page == page_obj.number %}
|
||||
<li class="page-item active"><a class="page-link" href="#">{{ page }}</a></li>
|
||||
{% else %}
|
||||
<li class="page-item"><a class="page-link" href="?{% url_replace request 'page' page %}" class="page">{{ page }}</a></li>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if show_last %}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
||||
{% extends is_ajax|yesno:"base_ajax.html,base.html" %}
|
||||
|
||||
{% block title %}Search Help{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
{% if not request.is_ajax %}
|
||||
{% if not is_ajax %}
|
||||
<div class="col-sm-12">
|
||||
<h1>Search Help</h1>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user