1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-13 08:58:35 +03:00

*Updated a new buch of icons

Changed reload method for main page
* Added cache support for some kinds of pages
This commit is contained in:
Adolfo Gómez García 2015-05-13 06:52:13 +02:00
parent 592510f0f3
commit b00a023f30
6 changed files with 5 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -236,7 +236,8 @@ uds.setReload = ->
uds.reload = ->
if uds.reloadCounter == 0
window.location.reload()
# window.location.reload()
window.location.href = window.location.href
else
uds.reloadCounter -= 1
uds.setReload()

View File

@ -53,7 +53,7 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2015-04-30'
__updated__ = '2015-05-13'
@webLoginRequired(admin=False)
@ -94,6 +94,7 @@ def transcomp(request, idTransport, componentId):
return errors.exceptionView(request, e)
@cache_page(3600, key_prefix='img')
def transportIcon(request, idTrans):
try:
icon = Transport.objects.get(uuid=idTrans).getInstance().icon(False)
@ -102,7 +103,7 @@ def transportIcon(request, idTrans):
return HttpResponseRedirect('/static/img/unknown.png')
@cache_page(86400, key_prefix='img')
@cache_page(3600, key_prefix='img')
def serviceImage(request, idImage):
try:
icon = Image.objects.get(uuid=idImage)