diff --git a/openslides/agenda/models.py b/openslides/agenda/models.py index 8e9efa75c..58a99f78d 100644 --- a/openslides/agenda/models.py +++ b/openslides/agenda/models.py @@ -139,4 +139,4 @@ register_slidemodel(Item, category=_('Agenda'), model_name=_('Agenda Item')) from projector.api import register_slidefunc from agenda.slides import agenda_show -register_slidefunc('agenda_show', agenda_show, category=_('Agenda')) +register_slidefunc(_('Agenda'), agenda_show, category=_('Agenda')) diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index 7b685b90b..7da0a4dc0 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -1,45 +1,30 @@ {% load i18n %} - - {% if perms.agenda.can_manage_agenda %} - - -
-
- - {% else %} - - {% if item.closed %} - - {% endif %} - - {% endif %} + + + {% if item.closed %} + + {% endif %} + {% for p in item.get_ancestors %}
 
{% endfor %} - {% if perms.agenda.can_manage_agenda %}
{% endif %} - {{ item }} - - + - {% if perms.agenda.can_manage_agenda %} - {% if item.children.exists %} {% endif %} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 83a5e8484..39406063e 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -52,32 +52,20 @@ - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} + {% if perms.agenda.can_manage_agenda %} {% endif %} - - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} + +