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

11 lines
496 B
PHP
Raw Normal View History

@php($version = config('constants.coolify.version'))
@if (str_contains($version, '-dev.'))
<span {{ $attributes->merge(['class' => 'text-xs opacity-90']) }}>v{{ $version }}</span>
@else
<a {{ $attributes->merge(['class' => 'text-xs cursor-pointer opacity-90 hover:opacity-100 dark:hover:text-white hover:text-black']) }}
href="https://github.com/coollabsio/coolify/releases/tag/v{{ config('constants.coolify.version') }}" target="_blank">
v{{ $version }}
</a>
@endif