30 lines
2.1 KiB
PHP
30 lines
2.1 KiB
PHP
<section class="item-container{{ $app->droppable }}" data-name="{{ $app->title }}" data-id="{{ $app->id }}">
|
|
<div class="item" style="background-color: {{ $app->colour }}">
|
|
<div class="app-icon-container">
|
|
@if($app->icon)
|
|
<img class="app-icon" src="{{ asset('/storage/'.str_replace('supportedapps', 'icons', $app->icon)) }}" />
|
|
@else
|
|
<img class="app-icon" src="{{ asset('/img/heimdall-icon-small.png') }}" />
|
|
@endif
|
|
</div>
|
|
<div class="details">
|
|
<div class="title{{ title_color($app->colour) }}">{{ $app->title }}</div>
|
|
@if($app->enabled())
|
|
<div data-id="{{ $app->id }}" data-dataonly="{{ $app->getconfig()->dataonly ?? '0' }}" class="livestats-container{{ title_color($app->colour) }}"></div>
|
|
@endif
|
|
</div>
|
|
<a rel="noopener noreferrer" class="link{{ title_color($app->colour) }}"{!! $app->link_target !!} href="{{ $app->link }}"><i class="fas {{ $app->link_icon }}"></i></a>
|
|
<?php /*
|
|
@if($app->enhanced() === true && (bool)$app->getConfig()->enabled === true)
|
|
<div class="tile-actions refresh">
|
|
<div class="icon">
|
|
<i class="fas fa-arrow-rotate-right"></i>
|
|
</div>
|
|
Refresh Stats
|
|
</div>
|
|
@endif
|
|
*/ ?>
|
|
</div>
|
|
<a class="item-edit" href="{{ route($app->link_type.'.edit', [ $app->id ]) }}"><i class="fas fa-pencil"></i></a>
|
|
@if((string)$app->appdescription !== '')<div class="tooltip">{{ $app->appdescription }}</div>@endif
|
|
</section>
|