2012-03-06 08:19:49 +01:00
|
|
|
{% extends "projector/base_projector.html" %}
|
|
|
|
|
|
|
|
{% load tags %}
|
|
|
|
{% load i18n %}
|
2012-04-14 14:51:56 +02:00
|
|
|
{% load staticfiles %}
|
2012-03-06 08:19:49 +01:00
|
|
|
|
|
|
|
{% block header %}
|
2012-04-14 14:51:56 +02:00
|
|
|
<link type="text/css" href="{% static 'styles/ui-lightness/jquery-ui-1.8.18.custom.css' %}" rel="stylesheet" />
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/projector-control.css' %}" />
|
|
|
|
<script type="text/javascript" src="{% static javascript/jquery-ui-1.8.18.custom.min.js' %}"></script>
|
|
|
|
<script type="text/javascript" src="{% static javascript/projector-control.js %}"></script>
|
|
|
|
<script type="text/javascript" src="{% static javascript/jquery.cookie.js %}"></script>
|
2012-03-06 08:19:49 +01:00
|
|
|
<script type="text/javascript">
|
2012-03-07 06:44:43 +01:00
|
|
|
$(function() {
|
|
|
|
$( ".column" ).sortable({
|
|
|
|
connectWith: ".column"
|
|
|
|
});
|
|
|
|
$( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
|
|
|
|
.find( ".portlet-header" )
|
|
|
|
.addClass( "ui-widget-header ui-corner-all" )
|
|
|
|
.prepend( "<span class='ui-icon ui-icon-minusthick'></span>")
|
|
|
|
.end()
|
|
|
|
.find( ".portlet-content" );
|
|
|
|
$( ".portlet-header .ui-icon" ).click(function() {
|
|
|
|
$( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
|
|
|
|
$( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
|
|
|
|
});
|
|
|
|
$( ".column" ).disableSelection();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2012-03-06 08:19:49 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{% trans 'Projector' %}</h1>
|
2012-03-12 18:22:18 +01:00
|
|
|
<div style="text-align: right; padding: 0 5px 5px 0; margin-top:-20px;">
|
|
|
|
<!-- countdown -->
|
|
|
|
<input type="checkbox" name="countdown" onchange="document.location='{% if countdown_visible %}{% url countdown_close %}{% else %}{% url countdown_open %}{% endif %}'"{% if countdown_visible %} checked{% endif %}>
|
|
|
|
{% trans "Countdown" %} (<a href="{% url config_agenda %}">{{countdown_time}}{% trans "sec" %}</a>)
|
2012-03-16 12:28:42 +01:00
|
|
|
{% if countdown_visible %}:
|
|
|
|
<a class="projector_countdown" href="{% url countdown_reset %}" title="{% trans 'Reset countdown' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/media-skip-backward.png' %}" />
|
2012-03-06 08:19:49 +01:00
|
|
|
</a>
|
2012-03-12 18:22:18 +01:00
|
|
|
<a class="projector_countdown" href="{% url countdown_start %}" title="{% trans 'Start countdown' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/media-playback-start.png' %}" />
|
2012-03-06 08:19:49 +01:00
|
|
|
</a>
|
2012-03-12 18:22:18 +01:00
|
|
|
<a class="projector_countdown" href="{% url countdown_stop %}" title="{% trans 'Stop countdown' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/media-playback-pause.png' %}" />
|
2012-03-06 08:19:49 +01:00
|
|
|
</a>
|
2012-03-12 18:22:18 +01:00
|
|
|
{% endif %}
|
|
|
|
<p></p>
|
|
|
|
<!-- projector control -->
|
|
|
|
{% trans "Adjust projector view" %}:
|
|
|
|
<a class="projector_edit" href="{% url projector_bigger %}" title="{% trans 'Zoom in' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/zoom-in.png' %}" />
|
2012-03-12 18:22:18 +01:00
|
|
|
</a>
|
|
|
|
<a class="projector_edit" href="{% url projector_smaller %}" title="{% trans 'Zoom out' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/zoom-out.png' %}" />
|
2012-03-12 18:22:18 +01:00
|
|
|
</a>
|
|
|
|
<a class="projector_edit" href="{% url projector_up %}" title="{% trans 'Scroll text up' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/go-up.png' %}" />
|
2012-03-12 18:22:18 +01:00
|
|
|
</a>
|
|
|
|
<a class="projector_edit" href="{% url projector_down %}" title="{% trans 'Scroll text down' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/go-down.png' %}" />
|
2012-03-12 18:22:18 +01:00
|
|
|
</a>
|
|
|
|
<a class="projector_edit" href="{% url projector_clean %}" title="{% trans 'Reset projector view' %}">
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/view-restore.png' %}" />
|
2012-03-12 18:22:18 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
2012-04-10 20:09:10 +02:00
|
|
|
{% for category, slides in categories.items %}
|
|
|
|
|
2012-03-12 18:22:18 +01:00
|
|
|
<div class="portlet">
|
|
|
|
<div class="portlet-header">{{ category }}</div>
|
|
|
|
<div class="portlet-content">
|
|
|
|
{% for slide in slides %}
|
|
|
|
{% if slide.model_slide %}
|
2012-03-21 22:21:23 +01:00
|
|
|
<ul style="line-height: 180%">
|
2012-04-14 11:18:47 +02:00
|
|
|
{% for slide in slide.get_items %}
|
|
|
|
<li class="{% if slide.active %}activeline{% endif %}"><a href="{% url projector_activate_slide slide.sid %}"
|
|
|
|
class="activate_link {% if slide.active %}active{% endif %}"
|
2012-04-10 21:11:50 +02:00
|
|
|
><div></div></a>
|
2012-04-14 11:18:47 +02:00
|
|
|
{% for i in slide.get_ancestors %} {% endfor %}
|
|
|
|
<a href="{% url projector_edit_slide slide.id %}">{{ slide }}</a>
|
|
|
|
{% if slide.children.exists %}
|
2012-04-14 14:51:56 +02:00
|
|
|
<a href="{% url projector_activate_summary slide.sid %}"><img src="{% static 'images/icons/view-list-tree.png' %}" title="{% trans 'Select item overview' %}"></a>
|
2012-04-10 21:11:50 +02:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
2012-03-12 18:22:18 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
2012-04-10 21:11:50 +02:00
|
|
|
<hr>
|
|
|
|
<ul style="line-height: 180%">
|
|
|
|
<li><a href="{% url projector_activate_slide slide.key %}"
|
2012-04-10 20:09:10 +02:00
|
|
|
class="activate_link {% if slide.active %}active{% endif %}"
|
2012-04-10 21:11:50 +02:00
|
|
|
><div></div></a>{{ slide.key }}</li>
|
|
|
|
</ul>
|
2012-03-12 18:22:18 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2012-03-06 08:19:49 +01:00
|
|
|
</div>
|
2012-03-12 18:22:18 +01:00
|
|
|
{% endfor %}
|
2012-04-10 20:09:10 +02:00
|
|
|
</div>
|
2012-03-07 06:44:43 +01:00
|
|
|
|
2012-03-12 18:22:18 +01:00
|
|
|
<div class="column">
|
|
|
|
<div class="portlet">
|
|
|
|
<div class="portlet-header">
|
2012-03-21 22:21:23 +01:00
|
|
|
{% trans "Projector Live View" %}
|
2012-03-12 18:22:18 +01:00
|
|
|
</div>
|
|
|
|
<div class="portlet-content">
|
2012-03-21 22:21:23 +01:00
|
|
|
<div id="iframewrapper">
|
|
|
|
<iframe id="iframe" src="{% url projector_show %}"></iframe>
|
|
|
|
</div>
|
2012-03-12 18:22:18 +01:00
|
|
|
</div>
|
2012-03-07 06:44:43 +01:00
|
|
|
</div>
|
2012-03-12 18:22:18 +01:00
|
|
|
<div class="portlet">
|
|
|
|
<div class="portlet-header">{% trans "Hidden information" %}</div>
|
|
|
|
<div class="portlet-content">
|
|
|
|
TODO: list hidden agenda items
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-03-06 08:19:49 +01:00
|
|
|
</div>
|
2012-03-07 06:44:43 +01:00
|
|
|
|
2012-03-06 08:19:49 +01:00
|
|
|
{% endblock %}
|