Skip to content

Commit fbf4f5e

Browse files
committed
refac
1 parent 6c77e6f commit fbf4f5e

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

src/lib/components/chat/Settings/About.svelte

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -106,47 +106,47 @@
106106

107107
<hr class=" border-gray-100 dark:border-gray-850" />
108108

109+
{#if $config?.license_metadata}
110+
<div class="mb-2 text-xs">
111+
{#if !$WEBUI_NAME.includes('Open WebUI')}
112+
<span class=" text-gray-500 dark:text-gray-300 font-medium">{$WEBUI_NAME}</span> -
113+
{/if}
114+
115+
<span class=" capitalize">{$config?.license_metadata?.type}</span> license purchased by
116+
<span class=" capitalize">{$config?.license_metadata?.organization_name}</span>
117+
</div>
118+
{:else}
119+
<div class="flex space-x-1">
120+
<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
121+
<img
122+
alt="Discord"
123+
src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
124+
/>
125+
</a>
126+
127+
<a href="https://twitter.com/OpenWebUI" target="_blank">
128+
<img
129+
alt="X (formerly Twitter) Follow"
130+
src="https://img.shields.io/twitter/follow/OpenWebUI"
131+
/>
132+
</a>
133+
134+
<a href="https://github.com/open-webui/open-webui" target="_blank">
135+
<img
136+
alt="Github Repo"
137+
src="https://img.shields.io/github/stars/open-webui/open-webui?style=social&label=Star us on Github"
138+
/>
139+
</a>
140+
</div>
141+
{/if}
142+
109143
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
110144
Emoji graphics provided by
111145
<a href="https://github.com/jdecked/twemoji" target="_blank">Twemoji</a>, licensed under
112146
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a>.
113147
</div>
114148

115-
<div class="flex space-x-1">
116-
<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
117-
<img
118-
alt="Discord"
119-
src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
120-
/>
121-
</a>
122-
123-
<a href="https://twitter.com/OpenWebUI" target="_blank">
124-
<img
125-
alt="X (formerly Twitter) Follow"
126-
src="https://img.shields.io/twitter/follow/OpenWebUI"
127-
/>
128-
</a>
129-
130-
<a href="https://github.com/open-webui/open-webui" target="_blank">
131-
<img
132-
alt="Github Repo"
133-
src="https://img.shields.io/github/stars/open-webui/open-webui?style=social&label=Star us on Github"
134-
/>
135-
</a>
136-
</div>
137-
138149
<div>
139-
{#if $config?.license_metadata}
140-
<div class="mb-2 text-xs">
141-
{#if !$WEBUI_NAME.includes('Open WebUI')}
142-
<span class=" text-gray-500 dark:text-gray-300 font-medium">{$WEBUI_NAME}</span> -
143-
{/if}
144-
145-
<span class=" capitalize">{$config?.license_metadata?.type}</span> license purchased by
146-
<span class=" capitalize">{$config?.license_metadata?.organization_name}</span>
147-
</div>
148-
{/if}
149-
150150
<pre
151151
class="text-xs text-gray-400 dark:text-gray-500">Copyright (c) {new Date().getFullYear()} <a
152152
href="https://openwebui.com"

0 commit comments

Comments
 (0)