This commit is contained in:
afornerot 2019-07-26 15:14:54 +02:00
parent d0dc35ca61
commit 2477fa187b
2 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,11 @@
{% for blog in blogs %}
<li id="menublog-{{blog.id}}" data-open="{% if blog.canupdate %}true{%endif%}" class="{% if entity.id is defined and entity.id==blog.id%}active{%endif%}" style="cursor:pointer">
<a href="{{ path("cadoles_portal_user_blog_view",{'id':blog.id}) }}">
{% if not blog.groups is empty %}
<i class="fa fa-users fa-fw"></i>
{% elseif app.user==blog.user %}
<i class="fa fa-user fa-fw"></i>
{%endif%}
{{ blog.name }}
{% if blog.canadd %}
<i class="fa fa-pencil"></i>

View File

@ -17,6 +17,12 @@
{% for calendar in calendars %}
<li id="menucalendar-{{calendar.id}}" data-open="{% if calendar.canupdate %}true{%endif%}" class="{% if entity.id is defined and entity.id==calendar.id%}active{%endif%}" style="cursor:pointer">
<a onClick="showCalendar({{ calendar.id }},{{ calendar.canupdate }})">
{% if not calendar.groups is empty %}
<i class="fa fa-users fa-fw"></i>
{% elseif app.user==calendar.user %}
<i class="fa fa-user fa-fw"></i>
{%endif%}
{{ calendar.name }}
{% if not calendar.canupdate %}
<i class="fa fa-lock"></i>