mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-30 21:12:40 +00:00
![Cameron Fischer](/assets/img/avatar_default.png)
* 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>
|