mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Add Settings page: Move theme & lang changer to settings page
This commit is contained in:
parent
18ed90fb7e
commit
729f9e0039
17 changed files with 265 additions and 44 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %}
|
||||
{% block content %}
|
||||
{% include 'pleasewaitdialog.html' %}
|
||||
{% if bottom_bar %}
|
||||
{% if bottom_bar == 'True' %}
|
||||
<nav class="navbar navbar-expand-sm fixed-bottom navbar-light bg-light">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">{% trans 'HOST' %}</a>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ from computes.models import Compute
|
|||
from instances.models import Instance
|
||||
from django.contrib.auth.models import User
|
||||
from accounts.models import UserInstance, UserSSHKey
|
||||
from appsettings.models import AppSettings
|
||||
from vrtManager.hostdetails import wvmHostDetails
|
||||
from vrtManager.instance import wvmInstance, wvmInstances
|
||||
from vrtManager.connection import connection_manager
|
||||
|
|
@ -118,7 +119,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
|
||||
bottom_bar = AppSettings.objects.get(key="VIEW_INSTANCE_DETAIL_BOTTOM_BAR").value
|
||||
try:
|
||||
userinstance = UserInstance.objects.get(instance__compute_id=compute_id,
|
||||
instance__name=vname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue