mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-18 02:09:43 +00:00
26f3a27e22
Thanks @pmario
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
title: $:/TagManager
|
|
|
|
\define lingo-base() $:/language/TagManager/
|
|
\define iconEditorTab(type)
|
|
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]">
|
|
<$link to={{!!title}}>
|
|
<$transclude/> <$view field="title"/>
|
|
</$link>
|
|
</$list>
|
|
\end
|
|
\define iconEditor(title)
|
|
<div class="tc-drop-down-wrapper">
|
|
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
|
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
|
<div class="tc-drop-down">
|
|
<$linkcatcher to="$title$!!icon">
|
|
<<iconEditorTab type:"!">>
|
|
<hr/>
|
|
<<iconEditorTab type:"">>
|
|
</$linkcatcher>
|
|
</div>
|
|
</$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>
|