{% if output_format == 'html' %}
{{ get_str('report:banner_report_title', tag='title') }}
{% endif %}
{% if output_format == 'html' %}
{% else %}
{% endif %}
{% if output_format == 'html' %}
|
{{ get_str('report:banner_report_title') }}
{{ get_str('report:generate_time', common_data['generate_time']) }}
{{ get_str('report:banner_statistic_period', common_data['report_start'], common_data['report_end']) }}
|
{% if output_format == 'pdf' %}
 |
{% endif %}
|
|
{% if output_format == 'html' %}
{{ block_start() }}
|
{{ block_end() }}
{% endif %}
{{ block_start() }}
|
{{ block_end() }}
{% if not common_data['volume_list'] %}
{{ block_start('no-storage-trend', true) }}
{{ get_str('report:no_storage') }} |
{{ get_str('report:storage_trend') }} |
{{ get_empty_placeholder('no-storage-trend') }}
|
|
{{ spacer() }}
{{ block_end() }}
{% else %}
{% for volume in common_data['volume_list'] %}
{{ block_start('storage-trend') }}
{{ get_str('report:storage_info', volume=get_str('common:volume', no_font=True)+' '+volume['vol_id'], size=render_size(volume['size'])) }} |
{{ get_str('report:storage_trend') }} |
{% if volume['total_write_size'] == 0 %}
{{ get_empty_placeholder('storage-trend') }}
{% else %}
{% if output_format == 'pdf' %} {% endif %}
{% if output_format == 'html' %}
{{ get_str('report:write_size') }}
{% endif %}
{% endif %}
|
|
{{ get_str('report:last_free', common_data['report_end']) }}
{{ render_size(volume['last_free']) }}
|
{{ get_str('report:estimated_exhaust') }}
{{ get_rich_str(volume['estimated_exhaust']) }}
|
|
{{ spacer() }}
{{ block_end() }}
{% for storage in volume['storage_list'] %}
{{ block_start('storage-usage') }}
|
{{ storage['share_name'] }}
{% if storage['is_encrypted'] %}({{ get_str('report:storage_encrypted') }}) {% endif %}
|
|
|
{% if len(storage['dedup_size']) == 0 %}
{{ get_str('report:storage_data_corrupt') }}
{% elif not storage['columns'] %}
{{ get_empty_placeholder('storage-usage') }}
{% else %}
{% if output_format == 'html' %}
{% for device_type in storage['device_type_list'] %}
{{ get_str(device_type['display_short_text']) }}
{% endfor %}
{% else %}
{% endif %}
{% endif %}
|
|
{% if len(storage['dedup_size']) > 0 %}
{{ get_str('report:storage_usage') }}: {{ storage['dedup_size'] }}
{{ get_str('report:global_deduplication_ratio') }}: {{ storage['dedup'] }}
{{ get_str('report:compression_ratio') }}: {{ storage['compress'] }}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% endfor %} {# NOTE: for each storage #}
{% endfor %} {# NOTE: for each volume #}
{% endif %} {# NOTE: if any volume #}
{{ block_start('device-transfer') }}
{{ get_str('report:device_info') }}
|
{{ get_str('report:device_coverage') }} |
{% if not common_data['device_count'] %}
{{ get_empty_placeholder('device-transfer') }}
{% else %}
{% if output_format == 'pdf' %}
{% endif %}
{% endif %}
|
|
|
{{ get_str('report:top_transfer') }} |
{% if not common_data['device_transfer_data'] or common_data['device_transfer_data'][0][0] == 0 %}
{{ get_empty_placeholder('device-transfer') }}
{% else %}
{% if output_format == 'pdf' %} {% endif %}
{% endif %}
|
|
|
{{ spacer() }}
{{ block_end() }}
{{ block_start('types-transfer') }}
{{ get_str('report:transfer') }} |
{% if not common_data['type_transfer_data'] %}
{{ get_empty_placeholder('types-transfer') }}
{% else %}
{% if output_format == 'pdf' %} {% endif %}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% if output_format == 'pdf' %}
{% if last_backup_time_need_next_page %}{{ nextpage() }}{% endif %}
{% if not last_backup_time %}
{{ block_start() }}
{{ get_str('report:last_backup_time_title') }} |
{{ get_empty_placeholder('last-backup-time') }}
|
|
{{ spacer() }}
{{ block_end() }}
{% else %}
{% for idx, device_part in enumerate(last_backup_time) %}
{% if idx > 0 %}{{ nextpage() }}{% endif %}
{{ block_start() }}
{{ get_str('report:last_backup_time_title') + ' ({0}/{1})'.format(idx + 1, len(last_backup_time)) }} |
{% if not device_part['data'] %}
{{ get_empty_placeholder('last-backup-time') }}
{% else %}
{{ generate_grid(device_part) }}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% endfor %}
{% endif %}
{% else %} {# NOTE: last backup time html part #}
{{ block_start() }}
{{ get_str('report:last_backup_time_title') }} |
{% if not last_backup_time %}
{{ get_empty_placeholder('last-backup-time') }}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% endif %}
{% if log_need_next_page %}{{ nextpage() }}{% endif %}
{{ block_start() }}
{{ get_str('report:task_error') }}
|
{{ block_end() }}
{% if output_format == 'pdf' %}
{% if not error_log %}
{{ block_start() }}
{{ get_str('report:error_logs') }} |
{{ get_empty_placeholder('error-log') }}
|
|
{{ block_end() }}
{% else %}
{% for idx, log_part in enumerate(error_log) %}
{% if idx > 0 %}{{ nextpage() }}{% endif %}
{{ block_start() }}
{{ get_str('report:error_logs') + ' ({0}/{1})'.format(idx + 1, len(error_log)) }} |
{% if not log_part['data'] %}
{{ get_empty_placeholder('error-log') }}
{% else %}
{{ generate_grid(log_part) }}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% endfor %}
{% endif %}
{% else %} {# NOTE: error log html part #}
{{ block_start() }}
{{ get_str('report:error_logs') }} |
{% if not error_log %}
{{ get_empty_placeholder('error-log') }}
{% endif %}
|
|
{{ spacer() }}
{{ block_end() }}
{% endif %}
{% if output_format == 'html' %}
{% endif %}