Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/js/components/global-header/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ProBadge from './ProBadge.vue';
import { Link } from '@inertiajs/vue3';
import useStatamicPageProps from '@/composables/page-props.js';

const { logos, isPro, cmsName } = useStatamicPageProps();
const { logos, isPro, cmsName, version } = useStatamicPageProps();
const customLogoImage = computed(() => {
if (! logos) return null
return logos.dark.nav ?? logos.light.nav;
Expand All @@ -26,9 +26,9 @@ function toggleNav() {
<div class="p-1 max-sm:ps-2 mr-2 size-5 flex items-center justify-center lg:inset-0">
<Icon name="burger-menu-no-border" class="size-3.5! sm:size-3.25! opacity-75 hover:opacity-100" />
</div>
<img v-if="customLogoImage" :src="customLogoImage" :alt="cmsName" class="w-full max-w-[260px] max-h-7">
<img v-if="customLogoImage" :src="customLogoImage" :alt="cmsName" class="w-full max-w-[260px] max-h-7" v-tooltip="version">
</button>
<Link v-if="customLogoText && !customLogoImage" :href="cp_url('/')" class="mr-2 font-medium text-white whitespace-nowrap" style="--focus-outline-offset: var(--outline-offset-button);">
<Link v-if="customLogoText && !customLogoImage" :href="cp_url('/')" class="mr-2 font-medium text-white whitespace-nowrap" v-tooltip="version" style="--focus-outline-offset: var(--outline-offset-button);">
{{ customLogoText }}
</Link>
</div>
Expand All @@ -39,7 +39,7 @@ function toggleNav() {
<div class="p-1 max-sm:ps-2 mr-2 size-5 flex items-center justify-center lg:inset-0">
<Icon name="burger-menu-no-border" class="size-3.5! sm:size-3.25! opacity-75 hover:opacity-100" />
</div>
<StatamicLogo class="size-7" />
<StatamicLogo class="size-7" v-tooltip="version" />
</button>
<Link :href="cp_url('/')" class="max-[350px]:hidden text-white/85 rounded-xs whitespace-nowrap" style="--focus-outline-offset: var(--outline-offset-button);">
{{ logos.text ?? logos.siteName }}
Expand Down
1 change: 1 addition & 0 deletions src/Http/Middleware/CP/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function share(Request $request): array
return array_filter([
...parent::share($request),
'_statamic' => [
'version' => Statamic::version(),
'cmsName' => __(Statamic::pro() ? config('statamic.cp.custom_cms_name', 'Statamic') : 'Statamic'),
'logos' => $this->logos(),
],
Expand Down