mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-22 02:24:56 +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
|
|
@ -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