2014-02-25 20:14:16 +00:00
|
|
|
title: $:/TagManager
|
2014-12-21 17:22:47 +00:00
|
|
|
icon: $:/core/images/tag-button
|
2015-03-10 12:29:39 +00:00
|
|
|
color: #bbb
|
2014-02-25 20:14:16 +00:00
|
|
|
|
2014-03-20 20:55:59 +00:00
|
|
|
\define lingo-base() $:/language/TagManager/
|
2014-08-09 19:50:28 +00:00
|
|
|
\define iconEditorTab(type)
|
2020-01-30 15:52:33 +00:00
|
|
|
\whitespace trim
|
|
|
|
<$link to=""><<lingo Icons/None>></$link>
|
2014-08-09 19:50:28 +00:00
|
|
|
<$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
|
2014-03-12 21:56:46 +00:00
|
|
|
\define iconEditor(title)
|
2020-01-30 15:52:33 +00:00
|
|
|
\whitespace trim
|
2014-08-28 17:21:08 +00:00
|
|
|
<div class="tc-drop-down-wrapper">
|
2018-11-18 20:58:03 +00:00
|
|
|
<$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="">
|
2014-08-28 17:21:08 +00:00
|
|
|
<div class="tc-drop-down">
|
2018-11-18 20:58:03 +00:00
|
|
|
<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>""">
|
2014-08-09 19:50:28 +00:00
|
|
|
<<iconEditorTab type:"!">>
|
2014-08-09 19:52:31 +00:00
|
|
|
<hr/>
|
2014-08-09 19:50:28 +00:00
|
|
|
<<iconEditorTab type:"">>
|
2014-03-12 21:56:46 +00:00
|
|
|
</$linkcatcher>
|
2014-08-09 12:12:23 +00:00
|
|
|
</div>
|
2014-03-12 21:56:46 +00:00
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
\end
|
2014-11-03 22:07:00 +00:00
|
|
|
\define toggleButton(state)
|
2020-01-30 15:52:33 +00:00
|
|
|
\whitespace trim
|
2018-11-18 20:58:03 +00:00
|
|
|
<$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed">
|
|
|
|
<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
|
2014-11-04 12:35:46 +00:00
|
|
|
{{$:/core/images/info-button}}
|
2014-11-03 22:39:05 +00:00
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2018-11-18 20:58:03 +00:00
|
|
|
<$reveal stateTitle=<<__state__>> type="match" text="open" default="closed">
|
|
|
|
<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
|
2014-11-04 12:35:46 +00:00
|
|
|
{{$:/core/images/info-button}}
|
2014-11-03 22:39:05 +00:00
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2014-11-03 22:07:00 +00:00
|
|
|
\end
|
2020-01-30 15:52:33 +00:00
|
|
|
\whitespace trim
|
2014-11-18 14:07:00 +00:00
|
|
|
<table class="tc-tag-manager-table">
|
2014-02-25 20:14:16 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2014-03-20 20:55:59 +00:00
|
|
|
<th><<lingo Colour/Heading>></th>
|
2014-11-03 22:07:00 +00:00
|
|
|
<th class="tc-tag-manager-tag"><<lingo Tag/Heading>></th>
|
2015-07-01 03:56:02 +00:00
|
|
|
<th><<lingo Count/Heading>></th>
|
2014-03-20 20:55:59 +00:00
|
|
|
<th><<lingo Icon/Heading>></th>
|
2014-11-04 12:35:46 +00:00
|
|
|
<th><<lingo Info/Heading>></th>
|
2014-02-25 20:14:16 +00:00
|
|
|
</tr>
|
2014-03-12 20:05:34 +00:00
|
|
|
<$list filter="[tags[]!is[system]sort[title]]">
|
2014-02-25 20:14:16 +00:00
|
|
|
<tr>
|
2014-11-03 22:07:00 +00:00
|
|
|
<td><$edit-text field="color" tag="input" type="color"/></td>
|
2018-11-18 20:58:03 +00:00
|
|
|
<td>{{||$:/core/ui/TagTemplate}}</td>
|
2015-07-01 03:56:02 +00:00
|
|
|
<td><$count filter="[all[current]tagging[]]"/></td>
|
2014-11-03 22:07:00 +00:00
|
|
|
<td>
|
2014-11-03 22:39:05 +00:00
|
|
|
<$macrocall $name="iconEditor" title={{!!title}}/>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-11-18 20:58:03 +00:00
|
|
|
<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} />
|
2014-11-03 22:07:00 +00:00
|
|
|
</td>
|
2014-02-25 20:14:16 +00:00
|
|
|
</tr>
|
2014-11-03 22:39:05 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2015-07-01 03:59:23 +00:00
|
|
|
<td colspan="4">
|
2018-11-18 20:58:03 +00:00
|
|
|
<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type="match" text="open" default="">
|
2014-11-03 22:07:00 +00:00
|
|
|
<table>
|
|
|
|
<tbody>
|
2014-11-04 12:35:46 +00:00
|
|
|
<tr><td><<lingo Colour/Heading>></td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr>
|
|
|
|
<tr><td><<lingo Icon/Heading>></td><td><$edit-text field="icon" tag="input" size="45"/></td></tr>
|
2014-11-03 22:07:00 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</$reveal>
|
2014-11-03 22:39:05 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2014-02-25 20:14:16 +00:00
|
|
|
</$list>
|
2015-07-01 03:56:16 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2018-11-19 09:35:06 +00:00
|
|
|
<td style="position:relative;">
|
2015-07-01 03:56:16 +00:00
|
|
|
{{$:/core/ui/UntaggedTemplate}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<small class="tc-menu-list-count"><$count filter="[untagged[]!is[system]] -[tags[]]"/></small>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2014-02-25 20:14:16 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|