Skip to content
Snippets Groups Projects
firmware.html 2.1 KiB
Newer Older
{% extends "base.html" %}


{% block content %}
chrissi^'s avatar
chrissi^ committed
<style>
    p .fab, p .fas { width:1.05em; }
</style>
<div class="container" >
    <div class="page-header" >
        <h1>{{ content.content_title }}</h1>
    </div>
    {{ content.content_body }}

    {% with contents=context.contents.filter(path__startswith="firmware/v").order_by("-content_title") %}
chrissi^'s avatar
chrissi^ committed
    {% with latest_release=contents[:1].values("content_title")[0] %}
    {% for content in contents %}
chrissi^'s avatar
chrissi^ committed
    <hr>
        <h2>{{content.content_title}}</h2>
        {% if content.date is not none%}
        <p>
            <em>Freigegeben: {{ content.date }}</em>
        </p>
        {% endif %}
        {% if content.branches is not none %}
chrissi^'s avatar
chrissi^ committed
        <p style="border-left: 2px solid #444; padding-left:1em; margin-left:0.4em;">
            {% with branches=content.branches %}
            {% for branch in branches %}
            <i class="fas fa-code-branch"></i>
            Freigeben in {{ branch["channel"] }}
chrissi^'s avatar
chrissi^ committed
            als <i>{{branch["name"]}}</i>{% if branch["date"] is defined %} am {{branch["date"]}}{% endif %}<br>
            {% endfor %}
            {% endwith %}
            {% if content.site is not none %}
chrissi^'s avatar
chrissi^ committed
            <i class="fab fa-gitlab"></i> <a href="{{content.site}}" >Site Git Repository</a><br>
            {% endif %}
            {% if content.gluon is not none %}
chrissi^'s avatar
chrissi^ committed
            <i class="fas fa-book"></i> <a href="{{content.gluon}}" >Gluon Git Repository</a><br>
            {% endif %}
            {% if content.rtd is not none %}
chrissi^'s avatar
chrissi^ committed
            <i class="fas fa-book"></i> <a href="{{content.rtd}}" >Release Notes</a><br>
            {% endif %}
            <i class="fas fa-download" style=""></i>
            {% if content.content_title == latest_release %}
chrissi^'s avatar
chrissi^ committed
            <a href="https://firmware.freifunk-bs.de/#stable" >Hier herunterladen</a>
chrissi^'s avatar
chrissi^ committed
            {% else %}
            Nicht mehr online verfügbar. (<a href="/kontakt.html" >Kontakt</a>)
            {% endif %}
        </p>
        {% endif %}
chrissi^'s avatar
chrissi^ committed
        <h3 style="margin-top:9px;">Änderungen</h3>
        {{content.content_body}}
    {% endfor %}
    {% endwith %}
chrissi^'s avatar
chrissi^ committed
    {% endwith %}
</div>
{% endblock %}