some bug fixes
This commit is contained in:
parent
e85822ebc9
commit
c55f240e84
@ -50,21 +50,37 @@
|
|||||||
|
|
||||||
<div style="text-align: right; padding: 0 5px 5px 0; margin-top:-20px;">
|
<div style="text-align: right; padding: 0 5px 5px 0; margin-top:-20px;">
|
||||||
<!-- countdown -->
|
<!-- countdown -->
|
||||||
<input type="checkbox" name="countdown" onchange="document.location='{% if countdown_visible == "True" %}{% url countdown_close %}{% else %}{% url countdown_open %}{% endif %}'"
|
<input type="checkbox" name="countdown" onchange="document.location='{% if countdown_visible %}{% url countdown_close %}{% else %}{% url countdown_open %}{% endif %}'"{% if countdown_visible %} checked{% endif %}>
|
||||||
{% if countdown_visible == "True" %}checked{% endif %}>
|
{% trans "Countdown" %} (<a href="{% url config_agenda %}">{{countdown_time}}{% trans "sec" %}</a>)
|
||||||
{% trans "Countdown" %} (<a href="{% url config_agenda %}">{{countdown_time}}{% trans "sec" %}</a>){% if countdown_visible == "True" %}:
|
{% if countdown_visible == "True" %}:
|
||||||
<a class="projector_countdown" href="{% url countdown_reset countdown_time %}" title="{% trans 'Reset countdown' %}"><img src="/static/images/icons/media-skip-backward.png"></a>
|
<a class="projector_countdown" href="{% url countdown_reset countdown_time %}" title="{% trans 'Reset countdown' %}">
|
||||||
<a class="projector_countdown" href="{% url countdown_start %}" title="{% trans 'Start countdown' %}"><img src="/static/images/icons/media-playback-start.png"></a>
|
<img src="/static/images/icons/media-skip-backward.png" />
|
||||||
<a class="projector_countdown" href="{% url countdown_stop %}" title="{% trans 'Stop countdown' %}"><img src="/static/images/icons/media-playback-pause.png"></a>
|
</a>
|
||||||
|
<a class="projector_countdown" href="{% url countdown_start %}" title="{% trans 'Start countdown' %}">
|
||||||
|
<img src="/static/images/icons/media-playback-start.png" />
|
||||||
|
</a>
|
||||||
|
<a class="projector_countdown" href="{% url countdown_stop %}" title="{% trans 'Stop countdown' %}">
|
||||||
|
<img src="/static/images/icons/media-playback-pause.png" />
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p></p>
|
<p></p>
|
||||||
<!-- projector control -->
|
<!-- projector control -->
|
||||||
{% trans "Adjust projector view" %}:
|
{% trans "Adjust projector view" %}:
|
||||||
<a class="projector_edit" href="{% url projector_bigger %}" title="{% trans 'Zoom in' %}"><img src="/static/images/icons/zoom-in.png"></a>
|
<a class="projector_edit" href="{% url projector_bigger %}" title="{% trans 'Zoom in' %}">
|
||||||
<a class="projector_edit" href="{% url projector_smaller %}" title="{% trans 'Zoom out' %}"><img src="/static/images/icons/zoom-out.png"></a>
|
<img src="/static/images/icons/zoom-in.png" />
|
||||||
<a class="projector_edit" href="{% url projector_up %}" title="{% trans 'Scroll text up' %}"><img src="/static/images/icons/go-up.png"></a>
|
</a>
|
||||||
<a class="projector_edit" href="{% url projector_down %}" title="{% trans 'Scroll text down' %}"><img src="/static/images/icons/go-down.png"></a>
|
<a class="projector_edit" href="{% url projector_smaller %}" title="{% trans 'Zoom out' %}">
|
||||||
<a class="projector_edit" href="{% url projector_clean %}" title="{% trans 'Reset projector view' %}"><img src="/static/images/icons/view-restore.png"></a>
|
<img src="/static/images/icons/zoom-out.png" />
|
||||||
|
</a>
|
||||||
|
<a class="projector_edit" href="{% url projector_up %}" title="{% trans 'Scroll text up' %}">
|
||||||
|
<img src="/static/images/icons/go-up.png" />
|
||||||
|
</a>
|
||||||
|
<a class="projector_edit" href="{% url projector_down %}" title="{% trans 'Scroll text down' %}">
|
||||||
|
<img src="/static/images/icons/go-down.png" />
|
||||||
|
</a>
|
||||||
|
<a class="projector_edit" href="{% url projector_clean %}" title="{% trans 'Reset projector view' %}">
|
||||||
|
<img src="/static/images/icons/view-restore.png" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -91,8 +107,11 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<td></td>
|
<td></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td><b>{% trans "Agenda" %} ({{ items|length }} {% trans "items" %}<span id="hiddencount"></span>)</b></td>
|
<td>
|
||||||
<td><span id="action_field" style="width: 1px;white-space: nowrap;">
|
<b>{% trans "Agenda" %} ({{ items|length }} {% trans "items" %}<span id="hiddencount"></span>)</b>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span id="action_field" style="width: 1px;white-space: nowrap;">
|
||||||
<span></span>
|
<span></span>
|
||||||
<a href="{% url print_agenda %}" title="{%trans 'Print agenda' %}"><img src="/static/images/icons/application-pdf.png"></a>
|
<a href="{% url print_agenda %}" title="{%trans 'Print agenda' %}"><img src="/static/images/icons/application-pdf.png"></a>
|
||||||
</span>
|
</span>
|
||||||
@ -157,7 +176,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i>{% trans "No items available." %}</i>
|
<i>{% trans "No items available." %}</i>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{% extends "base-projector.html" %}
|
{% extends "base-projector.html" %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %}{{ block.super }} -
|
{% block title %}{{ block.super }} -
|
||||||
{% if title %} {{ title }} {% else %} {%trans "Agenda" %} {% endif %}
|
{% if title %} {{ title }} {% else %} {%trans "Agenda" %} {% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
{% extends "base-projector.html" %}
|
{% extends "base-projector.html" %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
|
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if item.text %}
|
{% if item.text %}
|
||||||
<h1>{{ item.title }}</h1>
|
<h1>{{ item.title }}</h1>
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
{% load tags %}
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
{% load tags %}
|
|
||||||
<head>
|
<head>
|
||||||
<link type="text/css" rel="stylesheet" href="/static/styles/projector.css">
|
<link type="text/css" rel="stylesheet" href="/static/styles/projector.css">
|
||||||
<link rel="shortcut icon" href="/static/images/favicon.png" type="image/png" />
|
<link rel="shortcut icon" href="/static/images/favicon.png" type="image/png" />
|
||||||
|
@ -16,33 +16,33 @@ urlpatterns = patterns('projector.views',
|
|||||||
url(r'^$', 'active_slide',
|
url(r'^$', 'active_slide',
|
||||||
name='projector_show'),
|
name='projector_show'),
|
||||||
|
|
||||||
url(r'^bigger$', 'projector_edit', {'direction': 'bigger'},
|
url(r'^bigger/$', 'projector_edit', {'direction': 'bigger'},
|
||||||
name='projector_bigger'),
|
name='projector_bigger'),
|
||||||
|
|
||||||
url(r'^smaller$', 'projector_edit', {'direction': 'smaller'},
|
url(r'^smaller/$', 'projector_edit', {'direction': 'smaller'},
|
||||||
name='projector_smaller'),
|
name='projector_smaller'),
|
||||||
|
|
||||||
url(r'^up$', 'projector_edit', {'direction': 'up'},
|
url(r'^up/$', 'projector_edit', {'direction': 'up'},
|
||||||
name='projector_up'),
|
name='projector_up'),
|
||||||
|
|
||||||
url(r'^projector/down$', 'projector_edit', {'direction': 'down'},
|
url(r'^down/$', 'projector_edit', {'direction': 'down'},
|
||||||
name='projector_down'),
|
name='projector_down'),
|
||||||
|
|
||||||
url(r'^projector/clean$', 'projector_edit', {'direction': 'clean'},
|
url(r'^clean/$', 'projector_edit', {'direction': 'clean'},
|
||||||
name='projector_clean'),
|
name='projector_clean'),
|
||||||
|
|
||||||
url(r'^projector/countdown/show$', 'projector_countdown', {'command': 'show'},
|
url(r'^countdown/show/$', 'projector_countdown', {'command': 'show'},
|
||||||
name='countdown_open'),
|
name='countdown_open'),
|
||||||
|
|
||||||
url(r'^projector/countdown/hide$', 'projector_countdown', {'command': 'hide'},
|
url(r'^countdown/hide/$', 'projector_countdown', {'command': 'hide'},
|
||||||
name='countdown_close'),
|
name='countdown_close'),
|
||||||
|
|
||||||
url(r'^projector/countdown/reset/(?P<time>\d+)$', 'projector_countdown', {'command': 'reset'},
|
url(r'^countdown/reset/(?P<time>\d+)/$', 'projector_countdown', {'command': 'reset'},
|
||||||
name='countdown_reset'),
|
name='countdown_reset'),
|
||||||
|
|
||||||
url(r'^projector/countdown/start$', 'projector_countdown', {'command': 'start'},
|
url(r'^countdown/start/$', 'projector_countdown', {'command': 'start'},
|
||||||
name='countdown_start'),
|
name='countdown_start'),
|
||||||
|
|
||||||
url(r'^projector/countdown/stop$', 'projector_countdown', {'command': 'stop'},
|
url(r'^countdown/stop/$', 'projector_countdown', {'command': 'stop'},
|
||||||
name='countdown_stop'),
|
name='countdown_stop'),
|
||||||
)
|
)
|
||||||
|
@ -2,7 +2,7 @@ function presentation_reload() {
|
|||||||
if ($('#config > #ajax').html() == 'on') {
|
if ($('#config > #ajax').html() == 'on') {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: '/projector',
|
url: '/projector/',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: '',
|
data: '',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -14,9 +14,10 @@ function presentation_reload() {
|
|||||||
$('#content li').css({'font-size': data.bigger + '%'}, 200);
|
$('#content li').css({'font-size': data.bigger + '%'}, 200);
|
||||||
$('#content #sidebar').css({'font-size': '16px'}, 0);
|
$('#content #sidebar').css({'font-size': '16px'}, 0);
|
||||||
$('#content').animate({'margin-top': data.up + 'em'}, 200);
|
$('#content').animate({'margin-top': data.up + 'em'}, 200);
|
||||||
if (data.countdown_visible == "True")
|
|
||||||
|
if (data.countdown_visible == true)
|
||||||
$('#countdown').slideDown();
|
$('#countdown').slideDown();
|
||||||
if (data.countdown_visible == "False")
|
if (data.countdown_visible == false)
|
||||||
$('#countdown').slideUp();
|
$('#countdown').slideUp();
|
||||||
if (data.countdown_control == "reset")
|
if (data.countdown_control == "reset")
|
||||||
resetTimer(data.countdown_time);
|
resetTimer(data.countdown_time);
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
from system.models import Config
|
from system.models import Config
|
||||||
|
# TODO: Test that this is not thead-save
|
||||||
config = Config()
|
config = Config()
|
||||||
|
@ -31,7 +31,7 @@ urlpatterns = patterns('',
|
|||||||
(r'', include('participant.urls')),
|
(r'', include('participant.urls')),
|
||||||
(r'', include('assignment.urls')),
|
(r'', include('assignment.urls')),
|
||||||
(r'', include('system.urls')),
|
(r'', include('system.urls')),
|
||||||
(r'projector', include('projector.urls')),
|
(r'projector/', include('projector.urls')),
|
||||||
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),
|
||||||
(r'^i18n/', include('django.conf.urls.i18n')),
|
(r'^i18n/', include('django.conf.urls.i18n')),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user