{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "base.html" %} {% block content %} {{ template_hook("kadi_template_home_before") }}
{% trans %}Karlsruhe Data Infrastructure{% endtrans %}
{% trans %}for Materials Science{% endtrans %}
{% trans %}Welcome to{% endtrans %} Kadi4Mat,
{% trans %}you are currently logged in as{% endtrans %} .

{% trans %}Latest updates{% endtrans %}

{% if len(latest_updates) > 0 %} {% set num_cards = len(latest_updates) if len(latest_updates) % 2 == 0 else len(latest_updates) + 1 %} {% for index in range(num_cards) %} {% if index % 2 == 0 %}
{% endif %}
{% if index < len(latest_updates) %} {% set resource = latest_updates[index] %} {% endif %}
{% if index % 2 == 1 %}
{% endif %} {% endfor %} {% else %} {% trans %}None yet.{% endtrans %} {% endif %}
{% if len(groups) > 0 %}

{% trans %}My groups{% endtrans %}

{% if has_more_groups %}
{% trans %}View all{% endtrans %}
{% endif %}
{% set num_cards = len(groups) if len(groups) % 2 == 0 else len(groups) + 1 %} {% for index in range(num_cards) %} {% if index % 2 == 0 %}
{% endif %}
{% if index < len(groups) %} {% set group = groups[index] %} {% endif %}
{% if index % 2 == 1 %}
{% endif %} {% endfor %} {% endif %} {% endblock %}