mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Web part of new uds plugin almost done
This commit is contained in:
commit
d87f4de4ff
@ -51,6 +51,7 @@ if __name__ == "__main__":
|
||||
|
||||
except Exception:
|
||||
QtGui.QMessageBox.critical(None, 'Notice', 'This program is designed to be used by UDS', QtGui.QMessageBox.Ok)
|
||||
sys.exit(1)
|
||||
|
||||
QtGui.QMessageBox.critical(None, 'Notice', '{} {} {} {} {}'.format(host, ticket, scrambler, trans, ssl), QtGui.QMessageBox.Ok)
|
||||
|
||||
|
@ -187,9 +187,6 @@ class Image(UUIDModel):
|
||||
:note: If destroy raises an exception, the deletion is not taken.
|
||||
'''
|
||||
toDelete = kwargs['instance']
|
||||
toDelete.deployedServices.update(image=None)
|
||||
|
||||
# Todelete is a group
|
||||
|
||||
logger.debug('Deleted image {0}'.format(toDelete))
|
||||
|
||||
|
@ -75,7 +75,7 @@ class DeployedService(UUIDModel):
|
||||
state = models.CharField(max_length=1, default=State.ACTIVE, db_index=True)
|
||||
state_date = models.DateTimeField(default=NEVER)
|
||||
show_transports = models.BooleanField(default=True)
|
||||
image = models.ForeignKey(Image, null=True, blank=True, related_name='deployedServices')
|
||||
image = models.ForeignKey(Image, null=True, blank=True, related_name='deployedServices', on_delete=models.SET_NULL)
|
||||
initial_srvs = models.PositiveIntegerField(default=0)
|
||||
cache_l1_srvs = models.PositiveIntegerField(default=0)
|
||||
cache_l2_srvs = models.PositiveIntegerField(default=0)
|
||||
|
@ -163,11 +163,11 @@ uds.launch = (el) ->
|
||||
alt = el.attr('data-href-alt')
|
||||
|
||||
if uds.firefox
|
||||
launchMozilla this, url, alt
|
||||
launchMozilla el, url, alt
|
||||
else if uds.chrome
|
||||
launchChrome this, url, alt
|
||||
launchChrome el, url, alt
|
||||
else if uds.safari
|
||||
launchSafari this, url, alt
|
||||
launchSafari el, url, alt
|
||||
else if uds.ie
|
||||
launchIE this, url, alt
|
||||
|
||||
|
@ -15,7 +15,8 @@
|
||||
{% elif ser.in_use %}
|
||||
data-content="{%trans "Currently in use" %}"
|
||||
{% endif %}
|
||||
data-href="{{ trans.link }}">
|
||||
data-href="{{ trans.link }}"
|
||||
data-href-alt="{% url 'uds.web.views.client_downloads' %}">
|
||||
<div class="service-image">
|
||||
<img src="{% url "uds.web.views.serviceImage" idImage=ser.imageId %}" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user