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
17 lines
558 B
Plaintext
17 lines
558 B
Plaintext
title: $:/snippets/viewswitcher
|
|
|
|
\define icon()
|
|
$:/core/images/storyview-$(storyview)$
|
|
\end
|
|
\whitespace trim
|
|
<$linkcatcher to="$:/view">
|
|
<div class="tc-chooser tc-viewswitcher">
|
|
<$list filter="[storyviews[]]" variable="storyview">
|
|
<$set name="cls" filter="[<storyview>prefix{$:/view}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>>
|
|
<$button tag="a" class="tc-tiddlylink tc-btn-invisible" to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$button>
|
|
</div>
|
|
</$set>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher>
|