{% extends "base.html" %} {% block title %}{{ _('Dev Infos') }} — MediaForge{% endblock %} {% block styles %} {% endblock %} {% block content %}
{# data-settings-updates-url: static/devinfos.js rebuilds these cards on every refresh and needs the same deep link the server-rendered ones use. Passed as data instead of hardcoded in the script. #}
{% if posts %} {% for post in posts %}
{% if post.type == 'feature' %}{{ _('Feature') }} {% elif post.type == 'fix' %}{{ _('Fix') }} {% elif post.type == 'warning' %}{{ _('Warning') }} {% elif post.type == 'important' %}{{ _('Important') }} {% elif post.type == 'release' %}{{ _('Release') }} {% else %}{{ _('Announcement') }} {% endif %} {% if post.author %}{{ post.author }}{% endif %} {{ post.formatted_time or post.remote_created_at or '' }}

{{ post.title }}

{% if post.release_tag %}
{{ post.release_name or post.release_tag }} {% if post.release_name and post.release_tag and post.release_name != post.release_tag %} {{ post.release_tag }} {% endif %} {% if post.release_published %}{{ post.release_published }}{% endif %} {{ _('Go to updates') }}
{% endif %}
{{ post.body_html|default(post.body, true)|safe }}
{# The release notes, collapsed by default: GitHub release bodies are often long and this is a feed, not a changelog page.
does the open/close natively -- no JS, and it keeps working in the list that static/devinfos.js re-renders wholesale every 60s. #} {% if post.release_notes_html %}
{{ _('Changelog') }} {{ post.release_tag }}
{{ post.release_notes_html|safe }}
{% if post.release_url %} {{ _('Open release page') }} {% endif %}
{% endif %}
{% endfor %} {% else %}
{{ _('No dev infos yet.') }}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}