mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	replace deprecated ifequal/ifnotequal with if
This commit is contained in:
		
							parent
							
								
									e46bb99b3b
								
							
						
					
					
						commit
						6a0d04d300
					
				
					 14 changed files with 74 additions and 74 deletions
				
			
		| 
						 | 
				
			
			@ -39,36 +39,36 @@
 | 
			
		|||
        <dl class="ml-3 row">
 | 
			
		||||
            <dt class="col-4">{% trans "Interface" %}</dt>
 | 
			
		||||
            <dd class="col-8"><strong>{{ iface }}</strong></dd>
 | 
			
		||||
            <dt class="col-4">{% trans "IPv4" %} ({% ifequal ipv4 None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endifequal %})</dt>
 | 
			
		||||
            <dt class="col-4">{% trans "IPv4" %} ({% if ipv4 == None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endif %})</dt>
 | 
			
		||||
            <dd class="col-8">{{ ipv4 }}</dd>
 | 
			
		||||
            <dt class="col-4">{% trans "IPv6" %} ({% ifequal ipv6 None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endifequal %})</dt>
 | 
			
		||||
            <dt class="col-4">{% trans "IPv6" %} ({% if ipv6 == None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endif %})</dt>
 | 
			
		||||
            <dd class="col-8">{{ ipv6 }}</dd>
 | 
			
		||||
            <dt class="col-4">{% trans "MAC" %}</dt>
 | 
			
		||||
            <dd class="col-8">{{ mac }}</dd>
 | 
			
		||||
            <dt class="col-4">{% trans "Interface Type" %}</dt>
 | 
			
		||||
            <dd class="col-8">{{ itype }}</dd>
 | 
			
		||||
            {% ifequal itype 'bridge' %}
 | 
			
		||||
            {% if itype == 'bridge' %}
 | 
			
		||||
                <dt class="col-4">{% trans "Bridge Device" %}</dt>
 | 
			
		||||
                <dd class="col-8">{{ bridge }}</dd>
 | 
			
		||||
            {% endifequal %}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            <dt class="col-4">{% trans "Boot Mode" %}</dt>
 | 
			
		||||
            <dd class="col-8">{{ start_mode }}</dd>
 | 
			
		||||
            <dt class="col-4">{% trans "State" %}</dt>
 | 
			
		||||
            <dd class="col-8">
 | 
			
		||||
                <form action="" method="post" role="form" aria-label="Interface start/stop/delete form">{% csrf_token %}
 | 
			
		||||
                    {% ifequal state 0 %}
 | 
			
		||||
                    {% if state == 0 %}
 | 
			
		||||
                        <input type="submit" class="btn btn-sm btn-primary" name="start" value="{% trans "Start" %}">
 | 
			
		||||
                        <input type="submit" class="btn btn-sm btn-danger" name="delete" value="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <input type="submit" class="btn btn-sm btn-secondary" name="stop" value="{% trans "Stop" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
 | 
			
		||||
                    {% endifequal %}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </form>
 | 
			
		||||
            </dd>
 | 
			
		||||
        </dl>
 | 
			
		||||
 | 
			
		||||
        <div class="col-sm-12">
 | 
			
		||||
            <h5>{% trans 'Slaves' %}</h5>
 | 
			
		||||
            {% ifequal itype 'bridge' %}
 | 
			
		||||
            {% if itype == 'bridge' %}
 | 
			
		||||
            <table class="table table-bordered">
 | 
			
		||||
                <thead>
 | 
			
		||||
                <tr>
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +91,7 @@
 | 
			
		|||
                {% endfor %}
 | 
			
		||||
                </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
            {% endifequal %}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue