]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/admin/licenses/list.html
Redesign tags and license edit pages
[cheatdb.git] / app / templates / admin / licenses / list.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 Licenses
5 {% endblock %}
6
7 {% block content %}
8         <a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_license') }}">{{ _("New License") }}</a>
9
10         <h1>{{ _("Licenses") }}</h1>
11
12         <div class="list-group">
13                 {% for l in licenses %}
14                         <a class="list-group-item list-group-item-action"
15                                         href="{{ url_for('admin.create_edit_license', name=l.name) }}">
16                                 <span class="float-right badge {% if l.is_foss %}badge-primary{% else %}badge-warning{% endif %} badge-pill">
17                                         {{ l.is_foss and "Free" or "Non-free"}}
18                                 </span>
19                                 {{ l.name }}
20                         </a>
21                 {% endfor %}
22         </div>
23 {% endblock %}