{# SPDX-License-Identifier: AGPL-3.0-or-later #} {# SPDX-FileCopyrightText: 2026 JWP Consulting GK #} {% extends "admin/base_site.html" %} {% load i18n %} {% load static %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% include "admin/koriander/s3/includes/breadcrumbs.html" %} {% endblock %} {% block content %} {% if rendered %} {% if ok and dry_run %} {% blocktranslate %} Dry run complete. Press Upload again to finish uploading your site to your S3 bucket. {% endblocktranslate %} {% elif ok and not dry_run %}

{% trans "Your site has been successfully uploaded to S3." %}

{% else %}

{% trans "Could not upload your site." %}

{% endif %} {% if result %} {% if dry_run %}

{% trans "Upload log (dry run)" %}

{% else %}

{% trans "Upload log" %}

{% endif %} {% include "admin/koriander/includes/render_result.html" %} {% endif %}
{% if dry_run %} {% trans "Upload with S3" %} {% else %} {% trans "Upload again" %} {% endif %} {% trans "Back to site settings" %}
{% else %}

{% blocktranslate %} Press the Upload button to upload your site to the following S3 bucket. {% endblocktranslate %}

{% if site_settings.s3_region %} {% endif %} {% if site_settings.s3_endpoint_url %} {% endif %}
{% trans "Storage type" %} {% if site_settings.s3_type == "aws" %} {% trans "AWS S3" %} {% else %} {% trans "S3 compatible object storage" %} {% endif %}
{% trans "Region" %} {{ site_settings.s3_region }}
{% trans "Endpoint URL" %} {{ site_settings.s3_endpoint_url }}
{% trans "Bucket" %} {{ site_settings.s3_bucket }}
{% csrf_token %} {% if form.show_confirm_overwrite %}

{% trans "Warning: this bucket already contains files. Confirm that you want to replace all files." %}

{% endif %} {{ form }}
{% trans "Back" %} {% trans "Back to site settings" %}
{% endif %} {% endblock %}