2024-01-23 16:13:23 +00:00
< div >
< x - team . navbar />
< div class = " flex gap-2 " >
< h2 > Shared Variables </ h2 >
2024-01-23 18:01:17 +00:00
< x - slide - over >
< x - slot : title > New Shared Variable </ x - slot : title >
< x - slot : content >
2024-01-23 19:26:45 +00:00
< livewire : project . shared . environment - variable . add />
2024-01-23 18:01:17 +00:00
</ x - slot : content >
< button @ click = " slideOverOpen=true "
2024-01-23 19:26:45 +00:00
class = " font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation " >+
Add </ button >
2024-01-23 18:01:17 +00:00
</ x - slide - over >
2024-01-23 16:13:23 +00:00
</ div >
2024-01-23 19:26:45 +00:00
< div class = " flex items-center gap-2 pb-4 " > You can use these variables anywhere with < span class = " text-warning " >@ {{ team . VARIABLENAME }} </ span > < x - helper
2024-03-02 02:37:31 +00:00
helper = " More info in upstream docs<a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>. " ></ x - helper >
2024-01-23 19:26:45 +00:00
</ div >
2024-01-23 16:13:23 +00:00
< div class = " flex flex-col gap-2 " >
@ forelse ( $team -> environment_variables -> sort () -> sortBy ( 'real_value' ) as $env )
< livewire : project . shared . environment - variable . show wire : key = " environment- { { $env->id }} "
: env = " $env " type = " team " />
@ empty
< div class = " text-neutral-500 " > No environment variables found .</ div >
@ endforelse
</ div >
</ div >