Skip to content
Snippets Groups Projects
Commit 06231a14 authored by chrissi^'s avatar chrissi^
Browse files

firmware: Add download Links


Signed-off-by: default avatarChris Fiege <chris@tinyhost.de>
parent 6973520f
No related branches found
No related tags found
No related merge requests found
template: firmware.html template: firmware.html
sort: 95
Firmware Firmware
...@@ -7,7 +8,10 @@ Firmware ...@@ -7,7 +8,10 @@ Firmware
Diese Seite gibt einen Überblick über die Änderungen zwischen unterschiedlichen Diese Seite gibt einen Überblick über die Änderungen zwischen unterschiedlichen
Versionen der Freifunk Braunschweig Firmware. Versionen der Freifunk Braunschweig Firmware.
Die aktuellste Firmware kann `hier <https://firmware.freifunk-bs.de>`__ heruntergeladen Die aktuellste Firmware kann über den folgenden Link heruntergeladen werden.
werden. werden.
Solltest du eine ältere Firmware benötigen kannst du dich über Solltest du eine ältere Firmware benötigen kannst du dich über
`Kontakt </kontakt.html>`__ an uns wenden. `Kontakt </kontakt.html>`__ an uns wenden.
:raw-html:`<button type="button" class="btn btn-success" style="display: flex; align-items:center;"><i class="fas fa-download" style="font-size:150%; margin-right:0.5em;"></i> Firmware herunterladen</button>`
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
{% block content %} {% block content %}
<style>
p .fab, p .fas { width:1.05em; }
</style>
<div class="container" > <div class="container" >
<div class="page-header" > <div class="page-header" >
<h1>{{ content.content_title }}</h1> <h1>{{ content.content_title }}</h1>
...@@ -9,7 +12,9 @@ ...@@ -9,7 +12,9 @@
{{ content.content_body }} {{ content.content_body }}
{% with contents=context.contents.filter(path__startswith="firmware/v").order_by("-content_title") %} {% with contents=context.contents.filter(path__startswith="firmware/v").order_by("-content_title") %}
{% with latest_release=contents[:1].values("content_title")[0] %}
{% for content in contents %} {% for content in contents %}
<hr>
<h2>{{content.content_title}}</h2> <h2>{{content.content_title}}</h2>
{% if content.date is not none%} {% if content.date is not none%}
<p> <p>
...@@ -17,27 +22,35 @@ ...@@ -17,27 +22,35 @@
</p> </p>
{% endif %} {% endif %}
{% if content.branches is not none %} {% if content.branches is not none %}
<p> <p style="border-left: 2px solid #444; padding-left:1em; margin-left:0.4em;">
{% with branches=content.branches %} {% with branches=content.branches %}
{% for branch in branches %} {% for branch in branches %}
<i class="fas fa-code-branch"></i> <i class="fas fa-code-branch"></i>
Freigeben in {{ branch["channel"] }} Freigeben in {{ branch["channel"] }}
als <i>{{branch["name"]}}</i>{% if branch["date"] is defined %} am {{branch["date"]}}{% endif %}.<br> als <i>{{branch["name"]}}</i>{% if branch["date"] is defined %} am {{branch["date"]}}{% endif %}<br>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
{% if content.site is not none %} {% if content.site is not none %}
<a href="{{content.site}}" ><i class="fab fa-gitlab"></i> Site Git Repository</a><br> <i class="fab fa-gitlab"></i> <a href="{{content.site}}" >Site Git Repository</a><br>
{% endif %} {% endif %}
{% if content.gluon is not none %} {% if content.gluon is not none %}
<a href="{{content.gluon}}" ><i class="fab fa-gitlab"></i> Gluon Git Repository</a><br> <i class="fas fa-book"></i> <a href="{{content.gluon}}" >Gluon Git Repository</a><br>
{% endif %} {% endif %}
{% if content.rtd is not none %} {% if content.rtd is not none %}
<a href="{{content.rtd}}" ><i class="fas fa-book"></i> Release Notes</a><br> <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 %}
<a href="https://firmware.freifunk-bs.de" >Hier herunterladen</a>
{% else %}
Nicht mehr online verfügbar. (<a href="/kontakt.html" >Kontakt</a>)
{% endif %} {% endif %}
</p> </p>
{% endif %} {% endif %}
<h3 style="margin-top:9px;">Änderungen</h3>
{{content.content_body}} {{content.content_body}}
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
{% endwith %}
</div> </div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment