feat: add system creation date field to system card

This commit is contained in:
Spectralitree
2021-12-11 16:25:40 +01:00
parent cd81c62371
commit 4c7869ae1d
3 changed files with 21 additions and 1 deletions

View File

@@ -1,11 +1,14 @@
<script lang="ts">
import { Row, Col, Modal, Image, Button } from 'sveltestrap';
import moment from 'moment';
import { toHTML } from 'discord-markdown';
export let user;
export let editMode: boolean;
$: htmlDescription = toHTML(user.description, {embed: true});
import { toHTML } from 'discord-markdown';
let created = moment(user.created).format("MMM D, YYYY");
let bannerOpen = false;
const toggleBannerModal = () => (bannerOpen = !bannerOpen);
@@ -22,6 +25,9 @@
<Col xs={12} lg={4} class="mb-2">
<b>Tag:</b> {user.tag}
</Col>
<Col xs={12} lg={4} class="mb-2">
<b>Created:</b> {created}
</Col>
{/if}
<Col xs={12} lg={4} class="mb-2">
<b>Timezone:</b> {user.timezone}