refac
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import { config, models, tags as _tags } from '$lib/stores';
|
||||
import Tags from '$lib/components/common/Tags.svelte';
|
||||
import XMark from '$lib/components/icons/XMark.svelte';
|
||||
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
@@ -248,4 +249,20 @@
|
||||
{$i18n.t('Save')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{#if $config?.features.enable_community_sharing && message?.model}
|
||||
<div class="mt-3 pt-3 border-t border-gray-100/30 dark:border-gray-850/30">
|
||||
<a
|
||||
href={`https://openwebui.com/models?q=${encodeURIComponent(message.model)}`}
|
||||
target="_blank"
|
||||
class="flex cursor-pointer items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-850 w-full px-3 py-2 rounded-xl transition"
|
||||
>
|
||||
<div class="self-center">
|
||||
<div class="text-sm font-medium">{$i18n.t('Leave a review for {{modelName}}', { modelName: message.model })}</div>
|
||||
<div class="text-xs text-gray-500">{$i18n.t('Help the community discover great models')}</div>
|
||||
</div>
|
||||
<ChevronRight className="size-4" />
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user