mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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 <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
2632820305
commit
e3afa843f4
|
@ -27,12 +27,12 @@
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{% for branch in all_branches %}
|
{% for branch in all_branches %}
|
||||||
<li><a href="{% url this_url_name branch.name %}{{ extra_url_param }}">
|
<li><a href="{% url this_url_name branch.name %}{{ extra_url_param }}">
|
||||||
{% if branch.name = url_branch %}<b>{% endif %}
|
{% if branch.name == url_branch %}<b>{% endif %}
|
||||||
{{ branch.name }}
|
{{ branch.name }}
|
||||||
{% if branch.short_description %}
|
{% if branch.short_description %}
|
||||||
({{ branch.short_description }})
|
({{ branch.short_description }})
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if branch.name = url_branch %}</b>{% endif %}
|
{% if branch.name == url_branch %}</b>{% endif %}
|
||||||
</a></li>
|
</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if oe_classic %}
|
{% if oe_classic %}
|
||||||
|
|
|
@ -33,14 +33,14 @@
|
||||||
{% if layerbranch.yp_compatible_version %}
|
{% if layerbranch.yp_compatible_version %}
|
||||||
<a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
|
<a href="{{layerbranch.yp_compatible_version.link_url}}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if layeritem.status = "N" %}
|
{% if layeritem.status == "N" %}
|
||||||
<span class="label label-warning">Unpublished</span>
|
<span class="label label-warning">Unpublished</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
{% if perms.layerindex.publish_layer or useredit %}
|
{% if perms.layerindex.publish_layer or useredit %}
|
||||||
<a href="{% url 'edit_layer' url_branch layeritem.name %}" class="btn">Edit layer</a>
|
<a href="{% url 'edit_layer' url_branch layeritem.name %}" class="btn">Edit layer</a>
|
||||||
{% if layeritem.layernote_set.count = 0 %}
|
{% if layeritem.layernote_set.count == 0 %}
|
||||||
<a href="{% url 'add_layernote' layeritem.name %}" class="btn">Add note</a>
|
<a href="{% url 'add_layernote' layeritem.name %}" class="btn">Add note</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if layerbranch.active_maintainers.count > 0 %}
|
{% if layerbranch.active_maintainers.count > 0 %}
|
||||||
<h3>{% if layerbranch.active_maintainers|length = 1 %}Maintainer{% else %}Maintainers{% endif %}</h3>
|
<h3>{% if layerbranch.active_maintainers|length == 1 %}Maintainer{% else %}Maintainers{% endif %}</h3>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for maintainer in layerbranch.active_maintainers %}
|
{% for maintainer in layerbranch.active_maintainers %}
|
||||||
|
|
|
@ -29,12 +29,12 @@
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{% for branch in all_branches %}
|
{% for branch in all_branches %}
|
||||||
<li><a href="{% url this_url_name branch.name %}">
|
<li><a href="{% url this_url_name branch.name %}">
|
||||||
{% if branch.name = url_branch %}<b>{% endif %}
|
{% if branch.name == url_branch %}<b>{% endif %}
|
||||||
{{ branch.name }}
|
{{ branch.name }}
|
||||||
{% if branch.short_description %}
|
{% if branch.short_description %}
|
||||||
({{ branch.short_description }})
|
({{ branch.short_description }})
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if branch.name = url_branch %}</b>{% endif %}
|
{% if branch.name == url_branch %}</b>{% endif %}
|
||||||
</a></li>
|
</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -51,14 +51,14 @@
|
||||||
{{ field.label_tag }}
|
{{ field.label_tag }}
|
||||||
</div>
|
</div>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{% if field.name = 'deps' %}
|
{% if field.name == 'deps' %}
|
||||||
<div class="scrolling">
|
<div class="scrolling">
|
||||||
<table><tbody>
|
<table><tbody>
|
||||||
{% for deplayer in deplistlayers %}
|
{% for deplayer in deplistlayers %}
|
||||||
{% if deplayer.id in form.checked_deps %}
|
{% if deplayer.id in form.checked_deps %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="checkboxtd"><input type="checkbox" name="deps" value="{{ deplayer.id }}" id="id_deps_{{forloop.counter}}" checked="checked" /></td>
|
<td class="checkboxtd"><input type="checkbox" name="deps" value="{{ deplayer.id }}" id="id_deps_{{forloop.counter}}" checked="checked" /></td>
|
||||||
{% if deplayer.status = 'N' %}
|
{% if deplayer.status == 'N' %}
|
||||||
<td><label class="muted" for="id_deps_{{forloop.counter}}">{{ deplayer.name }} (unpublished)</label></td>
|
<td><label class="muted" for="id_deps_{{forloop.counter}}">{{ deplayer.name }} (unpublished)</label></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><label for="id_deps_{{forloop.counter}}">{{ deplayer.name }}</label></td>
|
<td><label for="id_deps_{{forloop.counter}}">{{ deplayer.name }}</label></td>
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
{% if not deplayer.id in form.checked_deps %}
|
{% if not deplayer.id in form.checked_deps %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="checkboxtd"><input type="checkbox" name="deps" value="{{ deplayer.id }}" id="id_deps_{{forloop.counter}}" /></td>
|
<td class="checkboxtd"><input type="checkbox" name="deps" value="{{ deplayer.id }}" id="id_deps_{{forloop.counter}}" /></td>
|
||||||
{% if deplayer.status = 'N' %}
|
{% if deplayer.status == 'N' %}
|
||||||
<td><label class="muted" for="id_deps_{{forloop.counter}}">{{ deplayer.name }} (unpublished)</label></td>
|
<td><label class="muted" for="id_deps_{{forloop.counter}}">{{ deplayer.name }} (unpublished)</label></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><label for="id_deps_{{forloop.counter}}">{{ deplayer.name }}</label></td>
|
<td><label for="id_deps_{{forloop.counter}}">{{ deplayer.name }}</label></td>
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if field.name = 'vcs_web_url' %}
|
{% if field.name == 'vcs_web_url' %}
|
||||||
<div class="control-label">
|
<div class="control-label">
|
||||||
Web interface type
|
Web interface type
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -41,11 +41,11 @@
|
||||||
{{ revision.comment|linebreaksbr }}
|
{{ revision.comment|linebreaksbr }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for version in revision.version_set.all %}
|
{% for version in revision.version_set.all %}
|
||||||
{% if version.type = 0 %}
|
{% if version.type == 0 %}
|
||||||
Added
|
Added
|
||||||
{% elif version.type = 1 %}
|
{% elif version.type == 1 %}
|
||||||
Changed
|
Changed
|
||||||
{% elif version.type = 2 %}
|
{% elif version.type == 2 %}
|
||||||
Deleted
|
Deleted
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ version.content_type.name.lower }}: {{ version.object_repr }}
|
{{ version.content_type.name.lower }}: {{ version.object_repr }}
|
||||||
|
@ -66,4 +66,4 @@
|
||||||
|
|
||||||
|
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{% if layerbranch.yp_compatible_version %}
|
{% if layerbranch.yp_compatible_version %}
|
||||||
<a href="{{layerbranch.yp_compatible_version.link_url }}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
|
<a href="{{layerbranch.yp_compatible_version.link_url }}"><img src="{{layerbranch.yp_compatible_version.image_url}}" alt="{{layerbranch.yp_compatible_version.description}}" class="yp-icon" title="{{layerbranch.yp_compatible_version.description}}"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if layeritem.status = "N" %}
|
{% if layeritem.status == "N" %}
|
||||||
<span class="label label-warning">Unpublished</span>
|
<span class="label label-warning">Unpublished</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="label label-info">Published</span>
|
<span class="label label-info">Published</span>
|
||||||
|
@ -39,11 +39,11 @@
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
{% if perms.layerindex.publish_layer or useredit %}
|
{% if perms.layerindex.publish_layer or useredit %}
|
||||||
<a href="{% url 'edit_layer' 'master' layeritem.name %}?returnto=layer_review" class="btn">Edit layer</a>
|
<a href="{% url 'edit_layer' 'master' layeritem.name %}?returnto=layer_review" class="btn">Edit layer</a>
|
||||||
{% if layeritem.layernote_set.count = 0 %}
|
{% if layeritem.layernote_set.count == 0 %}
|
||||||
<a href="{% url 'add_layernote' layeritem.name %}" class="btn">Add note</a>
|
<a href="{% url 'add_layernote' layeritem.name %}" class="btn">Add note</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if layeritem.status = "N" and perms.layerindex.publish_layer %}
|
{% if layeritem.status == "N" and perms.layerindex.publish_layer %}
|
||||||
<a href="{% url 'delete_layer' layeritem.name %}" class="btn btn-warning">Delete layer</a>
|
<a href="{% url 'delete_layer' layeritem.name %}" class="btn btn-warning">Delete layer</a>
|
||||||
<a href="{% url 'publish' layeritem.name %}" class="btn btn-primary">Publish layer</a>
|
<a href="{% url 'publish' layeritem.name %}" class="btn btn-primary">Publish layer</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user