mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
* Basic htm5 template done
* Updated translations & texts
This commit is contained in:
parent
2b68a119e1
commit
bfed62d833
7
server/src/uds/templates/uds/html5/about.html
Normal file
7
server/src/uds/templates/uds/html5/about.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{% extends "uds/html5/templates/base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{% endblock %}
|
@ -2,7 +2,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-info">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
{% trans "Downloads" %}
|
{% trans "Downloads" %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -98,12 +98,16 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if user.isStaff %}
|
{% if user.isStaff %}
|
||||||
<div id="adminmsgs">
|
<div class="panel panel-warning">
|
||||||
<div>{% trans "Ip" %}: {{ ip }}</li>
|
<div class="panel-heading">
|
||||||
<div>{% trans "Networks" %}: {{ nets }}</div>
|
{% trans "Administrator info panel" %}
|
||||||
<div>{% trans "Transports" %}: {{ transports }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<p>{% trans "Ip" %}: {{ ip }}</p>
|
||||||
|
<p>{% trans "Networks" %}: {{ nets }}</p>
|
||||||
|
<p>{% trans "Transports" %}: {{ transports }}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -75,11 +75,9 @@
|
|||||||
|
|
||||||
{% if user.isStaff %}
|
{% if user.isStaff %}
|
||||||
<div id="adminmsgs">
|
<div id="adminmsgs">
|
||||||
<div>{% trans "Ip" %}: {{ ip }}</li>
|
<p>{% trans "Ip" %}: {{ ip }}</p>
|
||||||
<div>{% trans "Networks" %}: {{ nets }}</div>
|
<p>{% trans "Networks" %}: {{ nets }}</p>
|
||||||
<div>{% trans "Transports" %}: {{ transports }}</div>
|
<p>{% trans "Transports" %}: {{ transports }}</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
@ -63,6 +63,7 @@ urlpatterns = patterns('uds',
|
|||||||
(r'^auth/(?P<authName>.+)', 'web.views.authCallback'),
|
(r'^auth/(?P<authName>.+)', 'web.views.authCallback'),
|
||||||
(r'^authJava/(?P<idAuth>.+)/(?P<hasJava>.*)$', 'web.views.authJava'),
|
(r'^authJava/(?P<idAuth>.+)/(?P<hasJava>.*)$', 'web.views.authJava'),
|
||||||
(r'^authinfo/(?P<authName>.+)', 'web.views.authInfo'),
|
(r'^authinfo/(?P<authName>.+)', 'web.views.authInfo'),
|
||||||
|
(r'^about', 'web.views.about'),
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -142,6 +142,9 @@ def customAuth(request, idAuth):
|
|||||||
res = 'error'
|
res = 'error'
|
||||||
return HttpResponse(res, content_type = 'text/html')
|
return HttpResponse(res, content_type = 'text/html')
|
||||||
|
|
||||||
|
def about(request):
|
||||||
|
return render(request, theme.template('about.html'))
|
||||||
|
|
||||||
@webLoginRequired
|
@webLoginRequired
|
||||||
def logout(request):
|
def logout(request):
|
||||||
authLogLogout(request)
|
authLogLogout(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user