{#if sending.value} {/if}

Logs

{data.resultChangeLogCount.toLocaleString("en", { useGrouping: true })} result(s)

Filter
{#each data.changeLog as { id, table_name, operation, tstamp, old_value, new_value, user_id, username } (id)} {/each}
User Resource Operation Time Changes
{username} {table_name} {operation} {@const oldValue = JSON.stringify(old_value, null, 2)} {@const newValue = JSON.stringify(new_value, null, 2)}

Log changes

{table_name} — {operation} — User "{username}"

{#if old_value && new_value}

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}