1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Merge remote-tracking branch 'origin/v3.0'

This commit is contained in:
Adolfo Gómez García 2021-03-01 11:42:14 +01:00
commit d52bc68015
2 changed files with 42 additions and 14 deletions

View File

@ -1,13 +1,27 @@
{% load i18n %}
<html>
<head>
<script type="text/javascript">
<head>
<!-- just in case translations cannot be loaded, provide a fallback -->
<script type="text/javascript">
django = {
gettext: function (s) {
return s;
}
}
</script>
<script type="text/javascript" src="{% url 'utility.jsCatalog' LANGUAGE_CODE %}"></script>
<script type="text/javascript" src="{% url 'utility-adm.js' %}"></script>
<script type="text/javascript">
function onLoad() {
var msg = window.btoa(django.gettext('Page not found'));
window.location.href = "{% url 'page.error' 'param' %}".replace('param', msg);
}
</script>
</head>
<body onload="onLoad()">
</body>
</html>
</script>
</head>
<body onload="onLoad()">
</body>
</html>

View File

@ -1,13 +1,27 @@
{% load i18n %}
<html>
<head>
<script type="text/javascript">
<head>
<!-- just in case translations cannot be loaded, provide a fallback -->
<script type="text/javascript">
django = {
gettext: function (s) {
return s;
}
}
</script>
<script type="text/javascript" src="{% url 'utility.jsCatalog' LANGUAGE_CODE %}"></script>
<script type="text/javascript" src="{% url 'utility-adm.js' %}"></script>
<script type="text/javascript">
function onLoad() {
var msg = window.btoa(django.gettext('Internal server error'));
window.location.href = "{% url 'page.error' 'param' %}".replace('param', msg);
}
</script>
</head>
<body onload="onLoad()">
</body>
</html>
</script>
</head>
<body onload="onLoad()">
</body>
</html>