{% extends 'asr/database/templates/layout.html' %} {% set n1, n2, n3 = d.size %} {% macro help(description) %} {% endmacro %} {% macro entry(data) %} {# Associate help with data entry #} {% if data.description %} {{ data.value|safe }} {{ help(data.description|replace("\n","
")) }} {% else %} {{ data|safe }} {% endif %} {% endmacro %} {% macro atoms() %} {% if row.numbers|length %}
{% endif %} {% endmacro %} {% macro cell() %} {% for axis in d.cell %} {% for a in axis %} {% endfor %} {% endfor %}
Axis x (Å) y (Å) z (Å) Periodic
{{ loop.index }}{{ a }}{{ row.pbc[loop.index0] }}
{% for L in d.lengths %} {% endfor %}{% for a in d.angles %} {% endfor %}
Lengths (Å):{{ L }}
Angles (°):{{ a }}
{% endmacro %} {% macro table(data) %} {% if data.columnwidth %} {% for value in data.rows[0] %} {% endfor %} {% endif %} {% for title in data.header %} {% endfor %} {% for row in data.rows %} {% for value in row %} {% endfor %} {% endfor %}
{{ title|safe }}
{{ entry(value) }}
{% endmacro %} {% block title %} {{ d.formula|safe|striptags }} - Summary {% endblock %} {% block head %} {% endblock %} {% block content %}

{{ d.formula|safe }}

{% for title, things in d.layout %}
{% for column in things %}
{% for data in column %}
{% if data.type == 'atoms' %} {{ atoms() }} {% elif data.type == 'cell' %} {{ cell() }} {% elif data.type == 'table' %} {{ table(data) }} {% else %} {% if data.link %} {% if data.link == 'empty' %}
{% else %}
Interactive mode
{% endif %} {% endif %}
{% if data.caption %}
{{ data.caption }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endblock content %}