mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-10 17:30:26 +00:00
17 lines
527 B
Plaintext
17 lines
527 B
Plaintext
title: $:/snippets/themeswitcher
|
|
|
|
\whitespace trim
|
|
<$linkcatcher to="$:/theme">
|
|
<div class="tc-chooser">
|
|
<$list filter="[plugin-type[theme]sort[title]]">
|
|
<$set name="cls" filter="[all[current]field:title{$:/theme}] [<get.current.theme>field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
<div class=<<cls>>><$link to={{!!title}}>
|
|
''<$view field="name" format="text"/>''
|
|
 
|
|
<$view field="description" format="text"/>
|
|
</$link>
|
|
</div>
|
|
</$set>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher> |