title: $:/TagManager
icon: $:/core/images/tag-button
color: #bbb
caption: {{$:/language/TagManager/Caption}}
\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)
<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}$button>
<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default="">
<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<>/>""">
<>
<>
$linkcatcher>
$reveal>
\end
\define toggleButton(state)
<$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed">
<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
{{$:/core/images/info-button}}
$button>
$reveal>
<$reveal stateTitle=<<__state__>> type="match" text="open" default="closed">
<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
{{$:/core/images/info-button}}
$button>
$reveal>
\end
<> |
<> |
<> |
<> |
<> |
<$list filter="[tags[]!is[system]sort[title]]">
<$edit-text field="color" tag="input" type="color"/> |
{{||$:/core/ui/TagTemplate}} |
<$count filter="[all[current]tagging[]]"/> |
<$macrocall $name="iconEditor" title={{!!title}}/>
|
<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix] }}} />
|
|
<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix] }}} type="match" text="open" default="">
<> | <$edit-text field="color" tag="input" type="text" size="9"/> |
<> | <$edit-text field="icon" tag="input" size="45"/> |
$reveal>
|
$list>
|
{{$:/core/ui/UntaggedTemplate}}
|
|
|
|