Use this template to customize the HTML email your users will receive when a new notification of category "storage_operation" is sent to them. Copy the file to {{ templates_dir }}/mail/notifications/storage_operation-email.html and modify as required. If you are adding URLs, remember that only absolute URLs (with a domain name) make sense in email! They can be served from any stable location, including your Galaxy server or GitHub. The following variables are available for inserting into the HTML with Jinja2 syntax, like {{ variable_name }}. They will be rendered into the text before the email is sent: - name The user's name - user_email The user's email - date Date and time of the notification - hostname Your galaxy's hostname (i.e. usegalaxy.* or the value in `server_name` from the galaxy config file) - contact_email Your galaxy's contact email - notification_settings_url The URL to the user's notification settings to manage their subscriptions - variant The notification variant indicates the level of importance of the notification (i.e. info, warning, urgent) - content The storage operation payload - subject Notification subject - message Notification body - run_url Link to the run status page - mode Storage operation mode - state Storage operation state - total_count Total datasets in run - succeeded_count Successful datasets count - failed_count Failed datasets count - skipped_count Skipped datasets count - galaxy_url The URL to the Galaxy instance (i.e. https://usegalaxy.*) Template begins here >>>>>> [Galaxy] {{ content['subject'] }} {% set total_count = content['total_count'] or 0 %} {% if total_count > 0 %} {% set succeeded_pct = ((content['succeeded_count'] or 0) * 100 / total_count) | round(1) %} {% set failed_pct = ((content['failed_count'] or 0) * 100 / total_count) | round(1) %} {% set skipped_pct = ((content['skipped_count'] or 0) * 100 / total_count) | round(1) %} {% else %} {% set succeeded_pct = 0 %} {% set failed_pct = 0 %} {% set skipped_pct = 0 %} {% endif %}

Galaxy storage operation update

{{ content['subject'] }}

Hello {{ name }},

{{ content['message'] }}

Run summary

Mode: {{ content['mode'] }}
State: {{ content['state'] }}

Total datasets: {{ content['total_count'] }}
Succeeded: {{ content['succeeded_count'] }} ({{ succeeded_pct }}%)
Failed: {{ content['failed_count'] }} ({{ failed_pct }}%)
Skipped: {{ content['skipped_count'] }} ({{ skipped_pct }}%)

{% if total_count > 0 %} {% else %} {% endif %}
       
{% if content['failed_count'] and content['failed_count'] > 0 %}

Some datasets failed during this run. Open the run details to review failure reasons.

{% elif content['succeeded_count'] and content['total_count'] and content['succeeded_count'] == content['total_count'] %}

All datasets were processed successfully.

{% endif %}

Open run status

Thank you for using Galaxy.

Regards,
Your Galaxy Team at {{ hostname }}

You received this email because you are subscribed to storage operation notifications. {% if notification_settings_url %} You can manage your notification settings here. {% endif %}
{% if contact_email %} This is an automated email. Please do not reply directly; contact us at {{ contact_email }}. {% endif %}
Galaxy project logo