mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +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,20 +2,20 @@
|
|||||||
{% 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>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>{% trans "This page contains a list of downloadables provided by different modules" %}</p>
|
<p>{% trans "This page contains a list of downloadables provided by different modules" %}</p>
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for f in files %}
|
{% for f in files %}
|
||||||
<a class="list-group-item" href="{% url "uds.web.views.download" idDownload=f.id %}">
|
<a class="list-group-item" href="{% url "uds.web.views.download" idDownload=f.id %}">
|
||||||
<h4 class="list-group-item-heading">{{ f.name }}</h4>
|
<h4 class="list-group-item-heading">{{ f.name }}</h4>
|
||||||
<p class="list-group-item-text">{{ f.comment|safe }}</p>
|
<p class="list-group-item-text">{{ f.comment|safe }}</p>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -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>
|
||||||
</div>
|
<p>{% trans "Networks" %}: {{ nets }}</p>
|
||||||
|
<p>{% trans "Transports" %}: {{ transports }}</p>
|
||||||
|
|
||||||
|
</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