{% extends "users/base.html" %} {% load counter_tag %} {% block content %}
{% gettimemessage as timemessage %}

{{timemessage}}, {{request.user.first_name}}!

Letzter Login: {{ request.user.last_login }} {% getlocalweather request.user as weatherdata %} {% if request.user.profile.agency.city|length > 0 and weatherdata.0 != None %} {{weatherdata.0}}  {{weatherdata.2}} {% endif %}
Agentur: {{ request.user.profile.agency.name }}

{% if request.user.profile.agency.module_news %}
News  {% if perms.users.modulenews %} {% endif %}
{% for news_single in news %} {% endfor %}
Titel Veröffentlicht von Veröffentlicht am
{{news_single.name }} {{ news_single.created_by.first_name }} {{ news_single.created_by.last_name }} {{ news_single.go_online_on|date:"d.m.Y, H:i" }}
{% endif %} {% if request.user.profile.agency.module_news %}
{% endif %}
Neueste Standards
{% if standards_of_agency|length > 0 %}
{% for standard in standards_of_agency %} {% endfor %}
Titel Bearbeitet von Bearbeitet am
{{standard.name}} {{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}} {{standard.last_modified_on|date:"d.m.Y, H:i"}}
{% else %} Noch keine Standards erstellt. {% endif %}
{% if not request.user.profile.agency.module_news %}
{% endif %} {% if not request.user.profile.agency.module_timemanagement %}
{% else %}
{% endif %} {% if request.user.profile.agency.module_timemanagement %}
Heutige Abwesenheiten
{% if acutal_absences|length > 0 %} {% for ab in acutal_absences %} {% endfor %}
Mitarbeiter Abwesend bis Vertreter  
{{ab.user.get_full_name}} {{ab.end|date:"d.m.Y"}} {{ab.representator.get_full_name}}
{% else %} Für heute ist keine Abwesenheit eingetragen. {% endif %} {% endif %}
{% endblock content %}