{#if sending.value}
{data.resultChangeLogCount.toLocaleString("en", { useGrouping: true })}
result(s)
{table_name} — {operation} — User "{username}"
Logs
Filter
{#each data.changeLog as { id, table_name, operation, tstamp, old_value, new_value, user_id, username } (id)}
User
Resource
Operation
Time
Changes
{/each}
{username}
{table_name}
{operation}
Log changes
Difference
{#if form?.logId === id && form?.currentDiff}
{@html DOMPurify.sanitize(
// .replace takes escaped text representations of line breaks and converts them to real line breaks that render correctly in HTML
form.currentDiff.replace(/\\r\\n|\\n|\\r/g, "\n").replace(/\\\"/g, '"'),
{
ALLOWED_TAGS: ["ins", "del"]
}
)}
{/if}
{/if}
{#if new_value && !old_value}
New value
{DOMPurify.sanitize(newValue)}
{/if}
{#if old_value && !new_value}
Old value
{DOMPurify.sanitize(oldValue)}
{/if}