ui: Add helpers for formating date and file size
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-09-01 02:21:49 +02:00
commit f2bf07fd28
6 changed files with 57 additions and 5 deletions

View file

@ -29,6 +29,8 @@
Table,
} from 'sveltestrap';
import DateFormat from '../components/DateFormat.svelte';
import { issues, issues_nb_responses, issues_known_responses } from '../stores/issues.js';
import { settings } from '../stores/settings.js';
@ -157,7 +159,7 @@
{#each issue.texts as text, index}
<p style="margin-left: 15px; text-indent: -15px">
{#if !text.assignee || text.assignee == '$team'}Vous{:else}{text.assignee}{/if}
à {text.date}&nbsp;:
le <DateFormat date={text.date} />&nbsp;:
<span style="white-space: pre-line">{text.cnt}</span>
</p>
{/each}