{% extends 'core/base.html' %} {% load staticfiles %} {% block breadcrumb %} {% endblock breadcrumb%} {% block content %}
{% if friends %} {% for friend in friends %}
{{ friend.user.get_full_name }}
{{ friend.user.get_full_name }} {% if friend.user.last_login %} Last login: {{ friend.user.last_login|date:"H:i" }} in {{ friend.user.last_login|date:"d/m" }} {% endif %}
{{ friend.company }}
{% if friend.user.project_set.all %} Projects that {{ friend.user.first_name }} is working: {% for project in friend.user.project_set.all %} {{ project.name }}, {% endfor %} {% else %} {{ friend.user.first_name }} is working in no projects until now. {% endif %}
{% endfor %} {% else %} {% if user.is_authenticated %}

You have no friends :(

{% else %} Log in to see your friends {% endif %} {% endif %}
{% endblock %}