1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

Rearrange tabs for non superusers

This commit is contained in:
catborise 2019-04-04 16:03:22 +03:00
parent a457c262e1
commit 3ad520209f

View file

@ -525,6 +525,7 @@
<div role="tabpanel"> <div role="tabpanel">
<!-- Nav tabs --> <!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
{% if request.user.is_superuser %}
<li role="presentation" class="active"> <li role="presentation" class="active">
<a href="#boot_opt" aria-controls="boot" role="tab" data-toggle="tab"> <a href="#boot_opt" aria-controls="boot" role="tab" data-toggle="tab">
{% trans "Boot" %} {% trans "Boot" %}
@ -535,7 +536,7 @@
{% trans "Disk" %} {% trans "Disk" %}
</a> </a>
</li> </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">