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 %}
|
||||
|
||||
{% block body %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
{% trans "Downloads" %}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>{% trans "This page contains a list of downloadables provided by different modules" %}</p>
|
||||
<div class="list-group">
|
||||
{% for f in files %}
|
||||
<a class="list-group-item" href="{% url "uds.web.views.download" idDownload=f.id %}">
|
||||
<h4 class="list-group-item-heading">{{ f.name }}</h4>
|
||||
<p class="list-group-item-text">{{ f.comment|safe }}</p>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
{% trans "Downloads" %}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>{% trans "This page contains a list of downloadables provided by different modules" %}</p>
|
||||
<div class="list-group">
|
||||
{% for f in files %}
|
||||
<a class="list-group-item" href="{% url "uds.web.views.download" idDownload=f.id %}">
|
||||
<h4 class="list-group-item-heading">{{ f.name }}</h4>
|
||||
<p class="list-group-item-text">{{ f.comment|safe }}</p>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -98,12 +98,16 @@
|
||||
{% endif %}
|
||||
|
||||
{% if user.isStaff %}
|
||||
<div id="adminmsgs">
|
||||
<div>{% trans "Ip" %}: {{ ip }}</li>
|
||||
<div>{% trans "Networks" %}: {{ nets }}</div>
|
||||
<div>{% trans "Transports" %}: {{ transports }}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="panel panel-warning">
|
||||
<div class="panel-heading">
|
||||
{% trans "Administrator info panel" %}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p>{% trans "Ip" %}: {{ ip }}</p>
|
||||
<p>{% trans "Networks" %}: {{ nets }}</p>
|
||||
<p>{% trans "Transports" %}: {{ transports }}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -75,11 +75,9 @@
|
||||
|
||||
{% if user.isStaff %}
|
||||
<div id="adminmsgs">
|
||||
<div>{% trans "Ip" %}: {{ ip }}</li>
|
||||
<div>{% trans "Networks" %}: {{ nets }}</div>
|
||||
<div>{% trans "Transports" %}: {{ transports }}</div>
|
||||
</div>
|
||||
|
||||
<p>{% trans "Ip" %}: {{ ip }}</p>
|
||||
<p>{% trans "Networks" %}: {{ nets }}</p>
|
||||
<p>{% trans "Transports" %}: {{ transports }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
@ -63,6 +63,7 @@ urlpatterns = patterns('uds',
|
||||
(r'^auth/(?P<authName>.+)', 'web.views.authCallback'),
|
||||
(r'^authJava/(?P<idAuth>.+)/(?P<hasJava>.*)$', 'web.views.authJava'),
|
||||
(r'^authinfo/(?P<authName>.+)', 'web.views.authInfo'),
|
||||
(r'^about', 'web.views.about'),
|
||||
|
||||
)
|
||||
|
||||
|
@ -142,6 +142,9 @@ def customAuth(request, idAuth):
|
||||
res = 'error'
|
||||
return HttpResponse(res, content_type = 'text/html')
|
||||
|
||||
def about(request):
|
||||
return render(request, theme.template('about.html'))
|
||||
|
||||
@webLoginRequired
|
||||
def logout(request):
|
||||
authLogLogout(request)
|
||||
|
Loading…
Reference in New Issue
Block a user