From c8eb1012980a08a51d78da0c3955cc5ba6edf5ed Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 25 Aug 2022 10:39:36 +0200 Subject: [proxy] normalize whitespace in jinja templates --- .../web_ui/templates/packages/index.html.jinja | 32 ++++++------- .../templates/packages/load_from_disk.html.jinja | 10 ++--- .../templates/packages/show_single.html.jinja | 38 ++++++++-------- .../packages/show_single_version.html.jinja | 52 +++++++++++----------- 4 files changed, 66 insertions(+), 66 deletions(-) (limited to 'src/hydrilla/proxy/web_ui/templates/packages') diff --git a/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja index cbdd3d9..c59ed20 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages/index.html.jinja @@ -31,22 +31,22 @@ in a proprietary work, I am not going to enforce this in court. diff --git a/src/hydrilla/proxy/web_ui/templates/packages/load_from_disk.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/load_from_disk.html.jinja index 1f3c246..e2d012c 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages/load_from_disk.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages/load_from_disk.html.jinja @@ -19,7 +19,7 @@ I, Wojtek Kosior, thereby promise not to sue for violation of this file's licenses. Although I request that you do not make use this code in a proprietary work, I am not going to enforce this in court. #} -{%- extends "base.html.jinja" %} +{% extends "base.html.jinja" %} {% block title %} {{ _('web_ui.packages.load_from_disk.title') }} {% endblock %} {% block style %} {{ super() }} @@ -34,17 +34,17 @@ in a proprietary work, I am not going to enforce this in court.
+ accept=".zip,application/zip" required="">
-{%- endblock %} +{% endblock %} diff --git a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja index e362fa9..e1a447f 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages/show_single.html.jinja @@ -39,36 +39,36 @@ in a proprietary work, I am not going to enforce this in court.

{% if version_display_infos|length > 0 %} {% block version_list_heading %} - {{ _('web_ui.packages.single.version_list_heading') }} + {{ _('web_ui.packages.single.version_list_heading') }} {% endblock %} {% endif %}

{% endblock %} diff --git a/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja index 9943521..aa01272 100644 --- a/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/packages/show_single_version.html.jinja @@ -22,16 +22,16 @@ in a proprietary work, I am not going to enforce this in court. {% extends "packages/show_single.html.jinja" %} {% block title %} {{ _('web_ui.packages.single_version.title') }} {% endblock %} {% block main_info %} - {%- if uninstall_disallowed is defined %} + {% if uninstall_disallowed is defined %} - {%- endif %} - {%- if repo_communication_error is defined %} + {% endif %} + {% if repo_communication_error is defined %} - {%- endif %} + {% endif %}

{{ _('web_ui.packages.single_version.heading.name_{}') @@ -42,48 +42,48 @@ in a proprietary work, I am not going to enforce this in court. {{ display_info.info.versioned_identifier }} TODO: add more info... - {%- if display_info.installed == InstalledStatus.INSTALLED %} + {% if display_info.installed == InstalledStatus.INSTALLED %}
{{ _('web_ui.packages.single_version.package_is_installed') }}
- {%- if uninstall_disallowed is not defined %} + {% if uninstall_disallowed is not defined %}
- - + +
- {%- endif %} - {%- elif display_info.installed == InstalledStatus.NOT_INSTALLED %} + {% endif %} + {% elif display_info.installed == InstalledStatus.NOT_INSTALLED %}
{{ _('web_ui.packages.single_version.package_is_not_installed') }}
- {%- else %} + {% else %}
{{ _('web_ui.packages.single_version.package_install_failed') }}
- - + +
- - + +
- {%- endif %} -{%- endblock main_info %} + {% endif %} +{% endblock main_info %} {% block version_list_heading %} {{ _('web_ui.packages.single_version.version_list_heading') }} {% endblock %} -- cgit v1.2.3