forked from librenms/librenms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic port link view
- Loading branch information
Showing
7 changed files
with
115 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<a class="@if($status=='disabled') tw-text-gray-400 visited:tw-text-gray-400 @elseif($status=='down') tw-text-red-600 visited:tw-text-red-600 @else tw-text-blue-900 visited:tw-text-blue-900 dark:tw-text-dark-white-100 dark:visited:tw-text-dark-white-100 @endif" | ||
href="{{ $link }}" | ||
{{ $attributes }}> | ||
{{ $slot->isNotEmpty() ? $slot : $label }} | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@foreach($data['ports'] as $port) | ||
<x-panel> | ||
<x-slot name="title"> | ||
<div> | ||
{{-- div to allow color to override boostrap title link color --}} | ||
<x-port-link basic :port="$port"> | ||
<span class="tw-text-3xl tw-font-bold"> | ||
<i class="fa fa-tag" aria-hidden='true'></i> | ||
{{ $port->getLabel() }} | ||
@if($port->getLabel() !== $port->getDescription()) | ||
<span class="tw-text-xl tw-font-normal">{{ $port->getDescription() }}</span> | ||
@endif | ||
</span> | ||
</x-port-link> | ||
</div> | ||
</x-slot> | ||
<x-graph-row loading="lazy" columns="responsive" :port="$port" :type="$data['graph_type']" :graphs="[['from' => '-1d'], ['from' => '-1w'], ['from' => '-1m'], ['from' => '-1y']]" legend="no"></x-graph-row> | ||
</x-panel> | ||
@endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@foreach($data['ports'] as $port) | ||
<div class="minigraph-div"> | ||
<x-port-link :port="$port"> | ||
<div class="tw-font-bold">{{ $port->getShortLabel() }}</div> | ||
<x-graph :port="$port" :type="$data['graph_type']" :from="$request->input('from', '-1d')" width="180" height="55" legend="no"></x-graph> | ||
</x-port-link> | ||
</div> | ||
@endforeach |