mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-26 15:23:15 +00:00
9fbe72a877
By rearranging the `[all[]]` operator we are able to ensure that shadow tiddlers get processed before ordinary tiddlers. This makes it easier to create custom stylesheets that override the core.
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
title: $:/TagManager
|
|
|
|
\define lingo-base() $:/language/TagManager/
|
|
\define iconEditor(title)
|
|
<$edit-text field="icon" tag="input"/> <$button popup=<<qualify "$:/state/iconDropdown/$title$">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
|
<div class="tw-block-dropdown-wrapper">
|
|
<$reveal state=<<qualify "$:/state/iconDropdown/$title$">> type="nomatch" text="" default="">
|
|
<$linkcatcher to="$title$!!icon">
|
|
<div class="tw-block-dropdown tw-edit-type-dropdown">
|
|
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] +[sort[title]]">
|
|
<$link to={{!!title}}>
|
|
<$view field="title"/>
|
|
</$link>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher>
|
|
</$reveal>
|
|
</div>
|
|
\end
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th><<lingo Tag/Heading>></th>
|
|
<th><<lingo Count/Heading>></th>
|
|
<th><<lingo Colour/Heading>></th>
|
|
<th><<lingo Icon/Heading>></th>
|
|
</tr>
|
|
<$list filter="[tags[]!is[system]sort[title]]">
|
|
<tr>
|
|
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
|
<td><$count filter="[all[current]tagging[]]"/></td>
|
|
<td><$edit-text field="color" tag="input" type="color"/></td>
|
|
<td><$macrocall $name="iconEditor" title={{!!title}}/></td>
|
|
</tr>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|