mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-24 18:46:41 +00:00
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" size="20"/> <$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="text" size="9"/> <$edit-text field="color" tag="input" type="color"/></td>
|
|
<td><$macrocall $name="iconEditor" title={{!!title}}/></td>
|
|
</tr>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|