mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 19:39:57 +00:00
def8e6d354
* adding trim: link-dropdown, Fields, unfold * adding trim: all remaining snippets * Fix for reversion I accidentally applied
30 lines
1022 B
Plaintext
30 lines
1022 B
Plaintext
title: $:/snippets/LayoutSwitcher
|
|
tags: $:/tags/ControlPanel/Appearance
|
|
caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
|
|
|
|
\whitespace trim
|
|
<$linkcatcher to="$:/layout">
|
|
<div class="tc-chooser">
|
|
<$list filter="[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]">
|
|
<$list
|
|
filter="[{$:/layout}!has[text]]"
|
|
variable="ignore"
|
|
emptyMessage="""\whitespace trim
|
|
<$set name="cls" filter="[all[current]field:title{$:/layout}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
<div class=<<cls>>>
|
|
<$link to={{!!title}}>
|
|
''<$transclude field="name"/>'' - <$transclude field="description"/>
|
|
</$link></div></$set>
|
|
""">
|
|
<$set name="cls" filter="[all[current]field:title[$:/core/ui/PageTemplate]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
<div class=<<cls>>>
|
|
<$link to={{!!title}}>
|
|
''<$transclude field="name"/>'' - <$transclude field="description"/>
|
|
</$link>
|
|
</div>
|
|
</$set>
|
|
</$list>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher>
|