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

{% trans pagetitle %}

{% if user.is_authenticated %} {% if datasets %}
{% for dataset in datasets %}
{% if dataset.image %} {# class="user-img img-responsive img-circle" #} {% else %} default image for dataset {{ ds.title }} {% endif %}

{{dataset.title}}

{% if dataset.subtitle %}
{{ dataset.subtitle }}
{% endif %}

{% for user in dataset.owners.all %}{% if forloop.counter > 1 %}, {% endif %}{{ user.get_full_name }}{% endfor %}

{% if dataset.tags.all %} {% for tag in dataset.tags.all %}
{{ tag }}
{% endfor %} {% endif %}
{# create a new row after every 2nd item #} {% if forloop.counter|divisibleby:2 %}

{% endif %} {% endfor %}
{% else %}
{% trans "No Datasets found" %}
{% endif %}
{% include "countries.html" %}
{% else %}

{% trans "Please" %} {% trans "login" %} {% trans "to access the datasets" %}.

{% endif %}
{% endblock %}