1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 16:35:17 +00:00

Rearrange supported hypervisors list: if there are hypervisor support more than 5, it spans to multiple line which causes distortion.

This commit is contained in:
catborise 2019-11-25 11:02:50 +03:00
parent 941a97201e
commit 44df080b72

View file

@ -52,14 +52,33 @@
</div> </div>
<div class="col-xs-8 col-sm-9"> <div class="col-xs-8 col-sm-9">
<p>{{ hostname }}</p> <p>{{ hostname }}</p>
<p>{% for arch, hpv in hypervisor.items %} <p><div class="btn-group" style="margin-left: 8px">
<span class="glyphicon glyphicon-chevron-right"></span> {% for arch, hpv in hypervisor.items %}
<span class="label label-default">{{ arch }}</span> {% if forloop.counter < 4 %}
{% for h in hpv %} <div class="btn-group" >
<span class="label label-primary">{{ h }}</span> <button class="btn btn-xs btn-default dropdown-toggle" type="button" id="dropdownMenuButton{{ forloop.counter0 }}" data-toggle="dropdown">
{% endfor %} {{ arch }}
{% endfor %} <span class="caret"></span>
</p> </button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton{{ forloop.counter0 }}" role="menu">
{% for h in hpv %}
<li><a href="#">{{ h }}</a></li>
{% endfor %}
</ul>
</div>
{% else %}
<button class="btn btn-xs btn-default dropdown-toggle" type="button" id="dropdownMenuButton{{ forloop.counter0 }}" data-toggle="dropdown">
{{ hypervisor|length }} {% trans 'more' %}...
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton{{ forloop.counter0 }}" role="menu">
{% for arc in hypervisor.keys %}
<li><a href="#">{{ arc }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</div></p>
<p>{{ emulator }}</p> <p>{{ emulator }}</p>
<p> <p>
<span class="label label-default">Qemu</span> <span class="label label-default">Qemu</span>