coolify/resources/views/components/version.blade.php

9 lines
545 B
PHP
Raw Normal View History

{{-- MapleDeploy branding: show version without linking to upstream releases.
CI appends a .YYYYMMDDHHmm build timestamp to the upstream base version;
display only the base so the top bar doesn't overflow, keep the full
build string discoverable via the tooltip. --}}
@php($version = config('constants.coolify.version'))
@php($displayVersion = preg_replace('/\.\d{12}$/', '', $version))
<span title="v{{ $version }}" {{ $attributes->merge(['class' => 'text-xs opacity-90 dark:text-neutral-500']) }}>v{{ $displayVersion }}</span>