Upgrade to Bootstrap v5 (#457)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
{% block content %}
|
||||
{% if entry.url %}
|
||||
<a class="float-right btn btn-primary" href="{{ entry.url }}">View</a>
|
||||
<a class="float-end btn btn-primary" href="{{ entry.url }}">View</a>
|
||||
{% endif %}
|
||||
|
||||
<h1>{{ entry.title }}</h1>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_license') }}">New License</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_license') }}">New License</a>
|
||||
<a class="btn btn-secondary mb-4" href="{{ url_for('admin.license_list') }}">Back to list</a>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
||||
|
||||
@@ -5,7 +5,7 @@ Licenses
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_license') }}">{{ _("New License") }}</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_license') }}">{{ _("New License") }}</a>
|
||||
|
||||
<h1>{{ _("Licenses") }}</h1>
|
||||
|
||||
@@ -13,7 +13,7 @@ Licenses
|
||||
{% for l in licenses %}
|
||||
<a class="list-group-item list-group-item-action"
|
||||
href="{{ url_for('admin.create_edit_license', name=l.name) }}">
|
||||
<span class="float-right badge {% if l.is_foss %}badge-primary{% else %}badge-warning{% endif %} badge-pill">
|
||||
<span class="float-end badge {% if l.is_foss %}bg-primary{% else %}bg-warning{% endif %} roaded-pill">
|
||||
{{ l.is_foss and "Free" or "Non-free"}}
|
||||
</span>
|
||||
{{ l.name }}
|
||||
|
||||
@@ -28,14 +28,14 @@
|
||||
<form method="post" action="" class="card-body">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
<div class="row px-3">
|
||||
<select name="action" class="custom-select col">
|
||||
<select name="action" class="form-select col">
|
||||
{% for id, action in actions.items() %}
|
||||
<option value="{{ id }}" {% if loop.first %}selected{% endif %}>
|
||||
{{ action["title"] }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" value="Perform" class="col-sm-auto btn btn-primary ml-2" />
|
||||
<input type="submit" value="Perform" class="col-sm-auto btn btn-primary ms-2" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<form method="post" action="" class="card-body">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
<div class="">
|
||||
<select name="package" class="custom-select px-3" required>
|
||||
<select name="package" class="form-select px-3" required>
|
||||
<option disabled selected>-- please select --</option>
|
||||
{% for p in deleted_packages %}
|
||||
<option value="{{ p.id }}">
|
||||
@@ -21,8 +21,8 @@
|
||||
</select>
|
||||
<div class="mt-3">
|
||||
<input type="submit" name="submit" value="To Draft" class="col-sm-auto btn btn-warning" />
|
||||
<input type="submit" name="submit" value="To Changes Needed" class="col-sm-auto btn btn-danger ml-2" />
|
||||
<input type="submit" name="submit" value="To Ready for Review" class="col-sm-auto btn btn-success ml-2" />
|
||||
<input type="submit" name="submit" value="To Changes Needed" class="col-sm-auto btn btn-danger ms-2" />
|
||||
<input type="submit" name="submit" value="To Ready for Review" class="col-sm-auto btn btn-success ms-2" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_tag') }}">New Tag</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_tag') }}">New Tag</a>
|
||||
<a class="btn btn-secondary mb-4" href="{{ url_for('admin.tag_list') }}">Back to list</a>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
||||
@@ -23,7 +23,7 @@
|
||||
{% endif %}
|
||||
{{ render_submit_field(form.submit) }}
|
||||
{% if tag %}
|
||||
<a class="ml-5" target="_blank" href="{{ url_for('packages.list_all', tag=tag.name) }}">
|
||||
<a class="ms-5" target="_blank" href="{{ url_for('packages.list_all', tag=tag.name) }}">
|
||||
View packages with tag
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_tag') }}">{{ _("New Tag") }}</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_tag') }}">{{ _("New Tag") }}</a>
|
||||
|
||||
<h1>{{ _("Tags") }}</h1>
|
||||
|
||||
<p class="float-right">
|
||||
<p class="float-end">
|
||||
Sort by:
|
||||
<a href="{{ url_set_query(sort='name') }}">Name</a> |
|
||||
<a href="{{ url_set_query(sort='views') }}">Views</a>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_version') }}">New Version</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_version') }}">New Version</a>
|
||||
<a class="btn btn-secondary mb-4" href="{{ url_for('admin.version_list') }}">Back to list</a>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_submit_field %}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_version') }}">{{ _("New Version") }}</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_version') }}">{{ _("New Version") }}</a>
|
||||
|
||||
<h1>{{ _("Minetest Versions") }}</h1>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_warning') }}">New Warning</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_warning') }}">New Warning</a>
|
||||
<a class="btn btn-secondary mb-4" href="{{ url_for('admin.warning_list') }}">Back to list</a>
|
||||
|
||||
{% from "macros/forms.html" import render_field, render_submit_field %}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<a class="btn btn-primary float-right" href="{{ url_for('admin.create_edit_warning') }}">{{ _("New Warning") }}</a>
|
||||
<a class="btn btn-primary float-end" href="{{ url_for('admin.create_edit_warning') }}">{{ _("New Warning") }}</a>
|
||||
|
||||
<h1>{{ _("Warnings") }}</h1>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user