mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
Rearrange tabs for non superusers
This commit is contained in:
parent
a457c262e1
commit
3ad520209f
1 changed files with 12 additions and 11 deletions
|
@ -525,17 +525,18 @@
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
<!-- Nav tabs -->
|
<!-- Nav tabs -->
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li role="presentation" class="active">
|
{% if request.user.is_superuser %}
|
||||||
<a href="#boot_opt" aria-controls="boot" role="tab" data-toggle="tab">
|
<li role="presentation" class="active">
|
||||||
{% trans "Boot" %}
|
<a href="#boot_opt" aria-controls="boot" role="tab" data-toggle="tab">
|
||||||
</a>
|
{% trans "Boot" %}
|
||||||
</li>
|
</a>
|
||||||
<li role="presentation">
|
</li>
|
||||||
<a href="#disks" aria-controls="disks" role="tab" data-toggle="tab">
|
<li role="presentation">
|
||||||
{% trans "Disk" %}
|
<a href="#disks" aria-controls="disks" role="tab" data-toggle="tab">
|
||||||
</a>
|
{% trans "Disk" %}
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% if request.user.is_superuser or userinstance.is_vnc %}
|
{% if request.user.is_superuser or userinstance.is_vnc %}
|
||||||
<li role="presentation">
|
<li role="presentation">
|
||||||
<a href="#vncsettings" aria-controls="vncsettings" role="tab" data-toggle="tab">
|
<a href="#vncsettings" aria-controls="vncsettings" role="tab" data-toggle="tab">
|
||||||
|
|
Loading…
Reference in a new issue