1
0
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:
Adolfo Gómez 2013-11-08 14:40:52 +00:00
parent 2b68a119e1
commit bfed62d833
6 changed files with 40 additions and 27 deletions

View File

@ -0,0 +1,7 @@
{% extends "uds/html5/templates/base.html" %}
{% load i18n %}
{% block body %}
{% endblock %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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'),
) )

View File

@ -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)