typst4ei 2.0.0-alpha

The Typst4EI building and serving tool/cli
{% extends "base.html.j2" %}

{% block main_table %}

{% for table in tables -%}
    {%- if table.title.len() != 0 %}
    <h2>{{ table.title }}</h2>
    {% endif %}

    {%- if table.documents.len() != 0 -%}
    <table>
        <thead>
            <tr>
                <th>Titel</th>
                {%- if group_by != GroupBy::Category -%}
                    <th>Kategorie</th>
                {%- endif %}
                {%- if group_by != GroupBy::Authors -%}
                    <th>Autor</th>
                {% endif %}
                <th>Quelle</th>
                <th>Zuletzt aktualisiert</th>
            </tr>
        </thead>
        <tbody>
            {%- for document in table.documents %}
            <tr>
	        <td><a href="{{ document.filename }}">{{ document.title }}</a></td>
                {%- if group_by != GroupBy::Category -%}
                    <td>{{ document.module.category() }}</td>
                {% endif %}
                {%- if group_by != GroupBy::Authors -%}
                    <td>{{ document.authors.join(", ") }}</td>
                {% endif %}
                {%- if document.source.hide_urls -%}
                    <td>{{ document.source.provider.to_string() }}</td>
		{%- else -%}
                    <td><a href="{{ document.source.display_url() }}">{{ document.source.provider.to_string() }}</a></td>
                {%- endif %}
                <td>{{ document.modification_time.format("%Y-%m-%d %H:%M:%S") }}</td>
            {%- endfor %}
        </tbody>
    </table>
    {% endif %}
{%- endfor %}

{% endblock %}