contentdb/app/templates/admin/licenses/list.html

24 lines
639 B
HTML
Raw Normal View History

2018-07-28 18:26:28 +02:00
{% extends "base.html" %}
{% block title %}
Licenses
{% endblock %}
{% block content %}
2023-08-22 20:58:43 +02:00
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_license') }}">{{ _("New License") }}</a>
2020-07-12 21:32:32 +02:00
<h1>{{ _("Licenses") }}</h1>
<div class="list-group">
2018-07-28 18:26:28 +02:00
{% for l in licenses %}
2020-07-12 21:32:32 +02:00
<a class="list-group-item list-group-item-action"
href="{{ url_for('admin.create_edit_license', name=l.name) }}">
<span class="float-end badge {% if l.is_foss %}bg-primary{% else %}bg-warning{% endif %} rounded-pill">
2020-07-12 21:32:32 +02:00
{{ l.is_foss and "Free" or "Non-free"}}
</span>
{{ l.name }}
</a>
2018-07-28 18:26:28 +02:00
{% endfor %}
2020-07-12 21:32:32 +02:00
</div>
2018-07-28 18:26:28 +02:00
{% endblock %}