- Show custom field values in asset list, dashboard and list Excel export - New status flag to exclude assets (e.g. scrapped) from MeshCentral sync - Require a secure SESSION_SECRET with a readable startup message - Add SESSION_COOKIE_SECURE and refresh session permissions per request - Translate HTTP errors and remaining fixed UI texts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.2 KiB
HTML
Executable File
24 lines
1.2 KiB
HTML
Executable File
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="toolbar">
|
|
<h1>{{ t('history.title', name=asset.name) }}</h1>
|
|
<div class="toolbar-actions">
|
|
<a class="button button-secondary" href="/assets/{{ asset.id }}/history/export.xlsx">{{ t('assets.export_excel') }}</a>
|
|
<a class="button" href="/assets/{{ asset.id }}">{{ t('software.back_to_asset') }}</a>
|
|
</div>
|
|
</div>
|
|
<p class="table-hint">{{ t('history.hint') }}</p>
|
|
<div class="table-scroll">
|
|
<table class="data-table">
|
|
<thead><tr><th>{{ t('history.changed_at') }}</th><th>{{ t('history.source') }}</th><th>{{ t('history.user') }}</th><th>{{ t('common.field') }}</th><th>{{ t('history.old_value') }}</th><th>{{ t('history.new_value') }}</th></tr></thead>
|
|
<tbody>
|
|
{% for entry in entries %}
|
|
{% for label, change in entry.changes.items() %}
|
|
<tr><td>{{ entry.changed_at }}</td><td>{{ entry.source }}</td><td>{{ entry.changed_by or '' }}</td><td>{{ label }}</td><td class="multiline">{{ change.old }}</td><td class="multiline">{{ change.new }}</td></tr>
|
|
{% endfor %}
|
|
{% else %}<tr><td colspan="6" class="empty-state">{{ t('history.empty') }}</td></tr>{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|