{% extends "base.html" %} {% load crispy_forms_filters %} {% load static %} {% load i18n %} {% block title %}{% trans "Overview" %}{% endblock %} {% block content %}

{% trans 'Space' %}

{% trans 'Recipes, foods, shopping lists and more are organized in spaces of one or more people.' %} {% trans 'You can either be invited into an existing space or create your own one.' %}
{% if request.user.userspace_set.all|length > 0 %}
{% trans 'Your Spaces' %}
{% for us in request.user.userspace_set.all %}
{% if us.space.image and us.space.image.is_image %} Image {% else %} Image {% endif %}
{{ us.space.name }}
{# {% if us.active %}#} {# #} {# {% else %}#} {# #} {# {% endif %}#}

{% trans 'Owner' %}: {{ us.space.created_by }} {% if us.space.created_by != us.user %}

{% trans 'Leave Space' %} {% endif %}

{% endfor %}
{% endif %}
{% trans 'Join Space' %}
{% trans 'Join an existing space.' %}

{% trans 'To join an existing space either enter your invite token or click on the invite link the space owner send you.' %}

{% csrf_token %} {{ join_form | crispy }}
{% trans 'Create Space' %}
{% trans 'Create your own recipe space.' %}

{% trans 'Start your own recipe space and invite other users to it.' %}

{% csrf_token %} {{ create_form | crispy }}
{% endblock %}