From e3afa843f4fb6aedde325aad50b4912ea13717cf Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 12 Apr 2018 16:36:20 +1200 Subject: templates: replace use of = with == I can't quite tell which Django version broke this, but in any case based on what's in pagination.html it seems we ought to have been using == already. Signed-off-by: Paul Eggleton --- templates/layerindex/detail.html | 6 +++--- templates/layerindex/duplicates.html | 4 ++-- templates/layerindex/editlayer.html | 8 ++++---- templates/layerindex/history.html | 8 ++++---- templates/layerindex/reviewdetail.html | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) (limited to 'templates/layerindex') diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html index 3081ef3b68..d1e807bea6 100644 --- a/templates/layerindex/detail.html +++ b/templates/layerindex/detail.html @@ -33,14 +33,14 @@ {% if layerbranch.yp_compatible_version %} {{layerbranch.yp_compatible_version.description}} {% endif %} - {% if layeritem.status = "N" %} + {% if layeritem.status == "N" %} Unpublished {% endif %} {% if user.is_authenticated %} {% if perms.layerindex.publish_layer or useredit %} Edit layer - {% if layeritem.layernote_set.count = 0 %} + {% if layeritem.layernote_set.count == 0 %} Add note {% endif %} {% endif %} @@ -118,7 +118,7 @@ {% endif %} {% if layerbranch.active_maintainers.count > 0 %} -

{% if layerbranch.active_maintainers|length = 1 %}Maintainer{% else %}Maintainers{% endif %}

+

{% if layerbranch.active_maintainers|length == 1 %}Maintainer{% else %}Maintainers{% endif %}

    {% for maintainer in layerbranch.active_maintainers %} diff --git a/templates/layerindex/duplicates.html b/templates/layerindex/duplicates.html index 0ebfe1185a..8c568b04c4 100644 --- a/templates/layerindex/duplicates.html +++ b/templates/layerindex/duplicates.html @@ -29,12 +29,12 @@ diff --git a/templates/layerindex/editlayer.html b/templates/layerindex/editlayer.html index bd9a2a3e02..e2350808f2 100644 --- a/templates/layerindex/editlayer.html +++ b/templates/layerindex/editlayer.html @@ -51,14 +51,14 @@ {{ field.label_tag }}
    - {% if field.name = 'deps' %} + {% if field.name == 'deps' %}
    {% for deplayer in deplistlayers %} {% if deplayer.id in form.checked_deps %} - {% if deplayer.status = 'N' %} + {% if deplayer.status == 'N' %} {% else %} @@ -70,7 +70,7 @@ {% if not deplayer.id in form.checked_deps %} - {% if deplayer.status = 'N' %} + {% if deplayer.status == 'N' %} {% else %} @@ -89,7 +89,7 @@ {% endif %} - {% if field.name = 'vcs_web_url' %} + {% if field.name == 'vcs_web_url' %}
    Web interface type
    diff --git a/templates/layerindex/history.html b/templates/layerindex/history.html index 87e2179e59..12ff93fcc3 100644 --- a/templates/layerindex/history.html +++ b/templates/layerindex/history.html @@ -41,11 +41,11 @@ {{ revision.comment|linebreaksbr }} {% else %} {% for version in revision.version_set.all %} - {% if version.type = 0 %} + {% if version.type == 0 %} Added - {% elif version.type = 1 %} + {% elif version.type == 1 %} Changed - {% elif version.type = 2 %} + {% elif version.type == 2 %} Deleted {% endif %} {{ version.content_type.name.lower }}: {{ version.object_repr }} @@ -66,4 +66,4 @@ {% endautoescape %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/layerindex/reviewdetail.html b/templates/layerindex/reviewdetail.html index 5b30e5bbb9..7885d1b180 100644 --- a/templates/layerindex/reviewdetail.html +++ b/templates/layerindex/reviewdetail.html @@ -30,7 +30,7 @@ {% if layerbranch.yp_compatible_version %} {{layerbranch.yp_compatible_version.description}} {% endif %} - {% if layeritem.status = "N" %} + {% if layeritem.status == "N" %} Unpublished {% else %} Published @@ -39,11 +39,11 @@ {% if perms.layerindex.publish_layer or useredit %} Edit layer - {% if layeritem.layernote_set.count = 0 %} + {% if layeritem.layernote_set.count == 0 %} Add note {% endif %} {% endif %} - {% if layeritem.status = "N" and perms.layerindex.publish_layer %} + {% if layeritem.status == "N" and perms.layerindex.publish_layer %} Delete layer Publish layer {% endif %} -- cgit 1.2.3-korg