-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1290 from KodeStar/feature/add_columns
Add alternate tag types
- Loading branch information
Showing
11 changed files
with
141 additions
and
18 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,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 |
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 |
---|---|---|
@@ -1,6 +1,24 @@ | ||
<div id="sortable"> | ||
@foreach($apps as $app) | ||
@include('item') | ||
@endforeach | ||
@include('add') | ||
<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 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 | ||
</div> | ||
@endforeach | ||
|
||
|
||
@else | ||
|
||
@foreach($apps as $app) | ||
@include('item') | ||
@endforeach | ||
@include('add') | ||
@endif | ||
|
||
|
||
</div> |
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