From 92a64d38cf988ab0f528df1c8521db9daf4fd844 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 20 May 2012 20:51:11 +0200 Subject: [PATCH] Add projector view link on front page. Fixed column for can_manage_projector permission. --- openslides/agenda/templates/agenda/overview.html | 6 ++++++ openslides/templates/front_page.html | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index b827cfdb0..8e0b484e1 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -63,7 +63,11 @@ {% trans "Item" %} {% if perms.agenda.can_manage_agenda %} {% trans "Comment" %} + {% endif %} + {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% trans "Actions" %} + {% endif %} + {% if perms.agenda.can_manage_agenda %} {% trans "Weight" %} {% endif %} @@ -75,6 +79,8 @@ {% if perms.agenda.can_manage_agenda %} + {% endif %} + {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% endif %} diff --git a/openslides/templates/front_page.html b/openslides/templates/front_page.html index 6daa88762..b775be7d0 100644 --- a/openslides/templates/front_page.html +++ b/openslides/templates/front_page.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load i18n %} +{% load staticfiles %} {% block title %}{{ block.super }} – {% trans "Home" %}{% endblock %} @@ -15,3 +16,14 @@ {% endfor %} {% endblock %} + +{% block submenu %} + {% if perms.projector.can_see_projector %} +

{%trans "Home" %}

+ + {% endif %} +{% endblock %} \ No newline at end of file