mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Add alternate tag types
This commit is contained in:
13
resources/views/partials/taglist.blade.php
Normal file
13
resources/views/partials/taglist.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$treat_tags_as = \App\Setting::fetch('treat_tags_as');
|
||||
?>
|
||||
@if( $treat_tags_as == 'tags')
|
||||
@if($taglist->first())
|
||||
<div id="taglist" class="taglist">
|
||||
<div class="tag white current" data-tag="all">All</div>
|
||||
@foreach($taglist as $tag)
|
||||
<div class="tag link{{ title_color($tag->colour) }}" style="background-color: {{ $tag->colour }}" data-tag="tag-{{ $tag->url }}">{{ $tag->title }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@@ -1,10 +1,10 @@
|
||||
<div id="sortable" class="{{ $treat_tags_as }}">
|
||||
@if($treat_tags_as == 'categories')
|
||||
<div id="sortable" class="{{ $treat_tags_as ?? '' }}">
|
||||
@if(isset($treat_tags_as) && $treat_tags_as == 'categories')
|
||||
|
||||
@foreach($categories as $category)
|
||||
<?php $apps = $category->children; ?>
|
||||
<div class="category">
|
||||
<div class="title">{{ $category->title }}</div>
|
||||
<div class="category item-container" data-name="{{ $category->title }}" data-id="{{ $category->id }}">
|
||||
<div class="title"><a href="{{ $category->link }}" style="{{ $category->colour ? 'color: ' . $category->colour .';' : '' }}">{{ $category->title }}</a></div>
|
||||
@foreach($apps as $app)
|
||||
@include('item')
|
||||
@endforeach
|
||||
@@ -17,7 +17,8 @@
|
||||
@foreach($apps as $app)
|
||||
@include('item')
|
||||
@endforeach
|
||||
@include('add')
|
||||
@endif
|
||||
|
||||
@include('add')
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
@include('partials.taglist')
|
||||
@include('partials.search')
|
||||
|
||||
@if((isset($apps) && $apps->first()) || (isset($categories) && $categories->first()))
|
||||
|
||||
Reference in New Issue
Block a user