Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d4d7c3d8
Commit
d4d7c3d8
authored
Jul 15, 2024
by
Timothy J. Baek
Browse files
enh: citations link
parent
69083b64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
src/lib/components/chat/Messages/CitationsModal.svelte
src/lib/components/chat/Messages/CitationsModal.svelte
+17
-4
No files found.
src/lib/components/chat/Messages/CitationsModal.svelte
View file @
d4d7c3d8
<script lang="ts">
<script lang="ts">
import { getContext, onMount, tick } from 'svelte';
import { getContext, onMount, tick } from 'svelte';
import Modal from '$lib/components/common/Modal.svelte';
import Modal from '$lib/components/common/Modal.svelte';
const i18n = getContext('i18n');
const i18n = getContext('i18n');
...
@@ -54,9 +53,23 @@
...
@@ -54,9 +53,23 @@
<div class="text-sm font-medium dark:text-gray-300">
<div class="text-sm font-medium dark:text-gray-300">
{$i18n.t('Source')}
{$i18n.t('Source')}
</div>
</div>
<div class="text-sm dark:text-gray-400">
{document.source?.name ?? $i18n.t('No source available')}
{#if document.source?.name}
</div>
<div class="text-sm dark:text-gray-400">
<a
href={document?.source?.url
? `${document?.source?.url}/content`
: document.source.name}
target="_blank"
>
{document.source.name}
</a>
</div>
{:else}
<div class="text-sm dark:text-gray-400">
{$i18n.t('No source available')}
</div>
{/if}
</div>
</div>
<div class="flex flex-col w-full">
<div class="flex flex-col w-full">
<div class=" text-sm font-medium dark:text-gray-300">
<div class=" text-sm font-medium dark:text-gray-300">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment