mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
ui: Rename 'plinth_extras' template tags module to 'extras'
- Remove yet another reference to 'plinth'. Tests: - Some basic pages work. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
20ed01dfbc
commit
1d14d4a4d6
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_js %}
|
{% block page_js %}
|
||||||
<script src="{% static 'backups/backups_add_remote_repository.js' %}"
|
<script src="{% static 'backups/backups_add_remote_repository.js' %}"
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<div class="table-responsive repository" data-repository-name="{{ repository.name }}">
|
<div class="table-responsive repository" data-repository-name="{{ repository.name }}">
|
||||||
<table class="table" class="archives-list">
|
<table class="table" class="archives-list">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block extra_content %}
|
{% block extra_content %}
|
||||||
<h3>{% trans "Domains" %}</h3>
|
<h3>{% trans "Domains" %}</h3>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block subsubmenu %}
|
{% block subsubmenu %}
|
||||||
<a class="btn btn-default" role="button" href="/rspamd/">
|
<a class="btn btn-default" role="button" href="/rspamd/">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Contribute" %}</h2>
|
<h2>{% trans "Contribute" %}</h2>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block pagetitle %}
|
{% block pagetitle %}
|
||||||
<h2>{{ name }}</h2>
|
<h2>{{ name }}</h2>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_js %}
|
{% block page_js %}
|
||||||
<script src="{% static 'matrixsynapse/matrixsynapse.js' %}" defer></script>
|
<script src="{% static 'matrixsynapse/matrixsynapse.js' %}" defer></script>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block status %}
|
{% block status %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
<div class="alert alert-danger alert-dismissible
|
<div class="alert alert-danger alert-dismissible
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<h3>{% trans "Connections" %}</h3>
|
<h3>{% trans "Connections" %}</h3>
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{% trans 'Add custom PageKite service' %}</h3>
|
<h3>{% trans 'Add custom PageKite service' %}</h3>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if pkg_manager_is_busy %}
|
{% if pkg_manager_is_busy %}
|
||||||
<div class="alert alert-danger d-flex align-items-center">
|
<div class="alert alert-danger d-flex align-items-center">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block status %}
|
{% block status %}
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_js %}
|
{% block page_js %}
|
||||||
<script src="{% static 'snapshot/snapshot.js' %}" defer></script>
|
<script src="{% static 'snapshot/snapshot.js' %}" defer></script>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
<div id="snapshot-not-supported" class="alert alert-danger d-flex align-items-center">
|
<div id="snapshot-not-supported" class="alert alert-danger d-flex align-items-center">
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<link type="text/css" rel="stylesheet"
|
<link type="text/css" rel="stylesheet"
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Frequent Feature Updates" %}</h1>
|
<h1>{% trans "Frequent Feature Updates" %}</h1>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{% trans "Confirm Distribution Update?" %}</h3>
|
<h3>{% trans "Confirm Distribution Update?" %}</h3>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{% trans "Distribution Update" %}</h3>
|
<h3>{% trans "Distribution Update" %}</h3>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block status %}
|
{% block status %}
|
||||||
{{ block.super}} {% comment %} To extend instead of overwrite {% endcomment %}
|
{{ block.super}} {% comment %} To extend instead of overwrite {% endcomment %}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Administrator Account" %}</h2>
|
<h2>{% trans "Administrator Account" %}</h2>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
<h3>{% trans "As a Server" %}</h3>
|
<h3>{% trans "As a Server" %}</h3>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<header class="app-header {% if not app_info.icon_filename %} app-header-single-column {% endif %}">
|
<header class="app-header {% if not app_info.icon_filename %} app-header-single-column {% endif %}">
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Logs" %}: {{ app_info.name }}</h2>
|
<h2>{% trans "Logs" %}: {{ app_info.name }}</h2>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<a href="{{ item.url }}">
|
<a href="{{ item.url }}">
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if clients %}
|
{% if clients %}
|
||||||
{% with client_platforms=clients|clients_get_platforms %}
|
{% with client_platforms=clients|clients_get_platforms %}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% if clients %}
|
{% if clients %}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block body_class %}
|
{% block body_class %}
|
||||||
no-brand
|
no-brand
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<li id="id_help_menu" class="dropdown nav-item">
|
<li id="id_help_menu" class="dropdown nav-item">
|
||||||
<a href="{% url 'help:index' %}" title="{% trans "Help" %}"
|
<a href="{% url 'help:index' %}" title="{% trans "Help" %}"
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block body_class %}index-page{% endblock %}
|
{% block body_class %}index-page{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block internal_zone_warning %}
|
{% block internal_zone_warning %}
|
||||||
{% for component in firewall %}
|
{% for component in firewall %}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
<div class="alert alert-{{ message.tags }} alert-dismissible
|
<div class="alert alert-{{ message.tags }} alert-dismissible
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
{# Template to display a drop down button for notifications in the navbar #}
|
{# Template to display a drop down button for notifications in the navbar #}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if notifications %}
|
{% if notifications %}
|
||||||
<li class="nav-item notifications-dropdown">
|
<li class="nav-item notifications-dropdown">
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if notifications %}
|
{% if notifications %}
|
||||||
<div id="notifications" class="notifications collapse no-no-js" hx-swap-oob="true">
|
<div id="notifications" class="notifications collapse no-no-js" hx-swap-oob="true">
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if data.state == "waiting" %}
|
{% if data.state == "waiting" %}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% for operation in operations %}
|
{% for operation in operations %}
|
||||||
<div class="app-operation">
|
<div class="app-operation">
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if port_forwarding_info.ports %}
|
{% if port_forwarding_info.ports %}
|
||||||
<h3>{% trans "Port Forwarding" %}</h3>
|
<h3>{% trans "Port Forwarding" %}</h3>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% if tags %}
|
{% if tags %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
<li id="id_theme_menu" class="dropdown nav-item">
|
<li id="id_theme_menu" class="dropdown nav-item">
|
||||||
<a href="#" title="{% trans "Toggle theme (auto)" %}"
|
<a href="#" title="{% trans "Toggle theme (auto)" %}"
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load extras %}
|
||||||
|
|
||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ Test module for custom Django template tags.
|
|||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from plinth.templatetags import plinth_extras
|
from plinth.templatetags import extras
|
||||||
|
|
||||||
|
|
||||||
def _assert_active_url(menu, url):
|
def _assert_active_url(menu, url):
|
||||||
@ -44,7 +44,7 @@ def test_highlighting():
|
|||||||
['/abc/123/ab/', '/abc/123/'], ['/abc/123/', '/abc/123/']]
|
['/abc/123/ab/', '/abc/123/'], ['/abc/123/', '/abc/123/']]
|
||||||
|
|
||||||
for check_path, expected_active_path in tests:
|
for check_path, expected_active_path in tests:
|
||||||
menu = plinth_extras.mark_active_menuitem(menu, check_path)
|
menu = extras.mark_active_menuitem(menu, check_path)
|
||||||
_assert_active_url(menu, expected_active_path)
|
_assert_active_url(menu, expected_active_path)
|
||||||
assert _verify_active_menuitems(menu)
|
assert _verify_active_menuitems(menu)
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ def test_icon(resolve_static_path, tmp_path):
|
|||||||
icon1 = tmp_path / 'icon1.svg'
|
icon1 = tmp_path / 'icon1.svg'
|
||||||
icon1.write_text('<svg><cirlcle></circle></svg>')
|
icon1.write_text('<svg><cirlcle></circle></svg>')
|
||||||
resolve_static_path.return_value = icon1
|
resolve_static_path.return_value = icon1
|
||||||
return_value = plinth_extras.icon('icon1')
|
return_value = extras.icon('icon1')
|
||||||
assert return_value == ('<svg class="svg-icon" data-icon-name="icon1" '
|
assert return_value == ('<svg class="svg-icon" data-icon-name="icon1" '
|
||||||
'><cirlcle></circle></svg>')
|
'><cirlcle></circle></svg>')
|
||||||
|
|
||||||
@ -68,12 +68,12 @@ def test_icon_attributes(resolve_static_path, tmp_path):
|
|||||||
resolve_static_path.return_value = icon1
|
resolve_static_path.return_value = icon1
|
||||||
|
|
||||||
attributes = {'class': 'test-class'}
|
attributes = {'class': 'test-class'}
|
||||||
return_value = plinth_extras.icon('icon1', **attributes)
|
return_value = extras.icon('icon1', **attributes)
|
||||||
assert return_value == ('<svg class="test-class" data-icon-name="icon1" '
|
assert return_value == ('<svg class="test-class" data-icon-name="icon1" '
|
||||||
'><cirlcle></circle></svg>')
|
'><cirlcle></circle></svg>')
|
||||||
|
|
||||||
attributes = {'data-test': 'test-value'}
|
attributes = {'data-test': 'test-value'}
|
||||||
return_value = plinth_extras.icon('icon1', **attributes)
|
return_value = extras.icon('icon1', **attributes)
|
||||||
assert return_value == ('<svg data-test="test-value" class="svg-icon" '
|
assert return_value == ('<svg data-test="test-value" class="svg-icon" '
|
||||||
'data-icon-name="icon1" ><cirlcle></circle></svg>')
|
'data-icon-name="icon1" ><cirlcle></circle></svg>')
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ def test_icon_auto_ids(resolve_static_path, random_string, tmp_path):
|
|||||||
icon2.write_text('<svg><cirlcle id="autoidmagic-foo"></circle>'
|
icon2.write_text('<svg><cirlcle id="autoidmagic-foo"></circle>'
|
||||||
'<path id="autoidmagic-bar"></path></svg>')
|
'<path id="autoidmagic-bar"></path></svg>')
|
||||||
resolve_static_path.return_value = icon2
|
resolve_static_path.return_value = icon2
|
||||||
return_value = plinth_extras.icon('icon2')
|
return_value = extras.icon('icon2')
|
||||||
assert return_value == ('<svg class="svg-icon" data-icon-name="icon2" >'
|
assert return_value == ('<svg class="svg-icon" data-icon-name="icon2" >'
|
||||||
'<cirlcle id="randomvalue-foo"></circle>'
|
'<cirlcle id="randomvalue-foo"></circle>'
|
||||||
'<path id="randomvalue-bar"></path></svg>')
|
'<path id="randomvalue-bar"></path></svg>')
|
||||||
@ -100,6 +100,6 @@ def test_icon_xml_stripping(resolve_static_path, tmp_path):
|
|||||||
icon2.write_text('<?xml version="1.0" encoding="utf-8">\n'
|
icon2.write_text('<?xml version="1.0" encoding="utf-8">\n'
|
||||||
'<svg><cirlcle></circle></svg>')
|
'<svg><cirlcle></circle></svg>')
|
||||||
resolve_static_path.return_value = icon2
|
resolve_static_path.return_value = icon2
|
||||||
return_value = plinth_extras.icon('icon2')
|
return_value = extras.icon('icon2')
|
||||||
assert return_value == ('<svg class="svg-icon" data-icon-name="icon2" >'
|
assert return_value == ('<svg class="svg-icon" data-icon-name="icon2" >'
|
||||||
'<cirlcle></circle></svg>')
|
'<cirlcle></circle></svg>')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user