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

add show/hide bottom bar option in instance details

This commit is contained in:
catborise 2020-04-17 15:37:34 +03:00
parent f37d6601e1
commit 52c856c504
3 changed files with 37 additions and 30 deletions

View file

@ -4,7 +4,8 @@
{% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %}
{% block content %}
{% include 'pleasewaitdialog.html' %}
<nav class="navbar navbar-default navba navbar-fixed-bottom">
{% if bottom_bar %}
<nav class="navbar navbar-default navbar navbar-fixed-bottom">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar_bottom" aria-expanded="false" aria-controls="navbar">
@ -33,6 +34,7 @@
</div>
</div>
</nav>
{% endif %}
<!-- Page Heading -->
<div>
<div>

View file

@ -117,6 +117,7 @@ def instance(request, compute_id, vname):
keymaps = settings.QEMU_KEYMAPS
console_types = settings.QEMU_CONSOLE_TYPES
console_listen_addresses = settings.QEMU_CONSOLE_LISTEN_ADDRESSES
bottom_bar = settings.VIEW_INSTANCE_DETAIL_BOTTOM_BAR
try:
userinstance = UserInstance.objects.get(instance__compute_id=compute_id,
instance__name=vname,

View file

@ -173,6 +173,9 @@ VIEW_ACCOUNTS_STYLE = 'grid'
# available list style: default (grouped), nongrouped
VIEW_INSTANCES_LIST_STYLE = 'grouped'
# available options: True, False
VIEW_INSTANCE_DETAIL_BOTTOM_BAR = True
# available volume format: raw, qcow2, qcow
INSTANCE_VOLUME_DEFAULT_FORMAT = 'qcow2'
@ -208,3 +211,4 @@ INSTANCE_FIRMWARE_DEFAULT_TYPE = 'BIOS'
# Architecture: x86_64, i686, etc
INSTANCE_ARCH_DEFAULT_TYPE = 'x86_64'