abad75c129
- Fixed agenda widget for special slide views (e.g. list of speakers, summary). - Fixed back to motion(s) link - Set icon for list of speakers widget. - Fixed overlay widget layout of form elements. - Added submenu with other config_pages to version.html. - Updated completly DE translations, fixed EN strings. - Coding style: Use correct ugettext and ugettext_lazy strings. Use "as _" for ugettext only. Updated translation. - Improved projector template (clock image, fixed facicon, added subtitle for list of speakers) - Changed permission strings ('oneself'). Added check if group(pk=3) exists. - Added event name and description to base template. Some minor template layout fixes. - Use static subtile (no context var). Show last 2 old_speakers for projector. - Cut old_speakers. - Projektor template style changes (e.g. overlay list of speakers).
30 lines
821 B
Python
30 lines
821 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
openslides.agenda.slides
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Slides for the agenda app.
|
|
|
|
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
"""
|
|
|
|
from django.utils.translation import ugettext_lazy, ugettext as _
|
|
|
|
from openslides.projector.api import register_slidemodel, register_slidefunc
|
|
|
|
from .models import Item
|
|
|
|
|
|
def agenda_show():
|
|
data = {}
|
|
items = Item.objects.filter(parent=None, type__exact=Item.AGENDA_ITEM)
|
|
data['title'] = _("Agenda")
|
|
data['items'] = items
|
|
data['template'] = 'projector/AgendaSummary.html'
|
|
return data
|
|
|
|
register_slidemodel(Item, control_template='agenda/control_item.html')
|
|
register_slidefunc('agenda', agenda_show, weight=-1, name=ugettext_lazy('Agenda'))
|