1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Use the select widget in the various switchers

This commit is contained in:
Jermolene 2014-05-31 18:38:17 +01:00
parent 3182a2d599
commit 0ccaedd7d2
4 changed files with 16 additions and 18 deletions

View File

@ -1,8 +1,7 @@
title: $:/snippets/languageswitcher title: $:/snippets/languageswitcher
{{$:/language/ControlPanel/Basics/Language/Prompt}} <$view tiddler={{$:/language}} field="description" format="text"><$view tiddler={{$:/language}} field="name" format="text"><$view tiddler={{$:/language}} field="title" format="text"/></$view></$view> {{$:/language/ControlPanel/Basics/Language/Prompt}} <$select tiddler="$:/language">
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
<$linkcatcher to="$:/language"> <option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
</$list> </$list>
</$linkcatcher> </$select>

View File

@ -1,6 +1,7 @@
title: $:/snippets/minilanguageswitcher title: $:/snippets/minilanguageswitcher
<$linkcatcher to="$:/language"> <$select tiddler="$:/language">
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div> <$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
</$list> </$list>
</$linkcatcher> </$select>

View File

@ -1,9 +1,8 @@
title: $:/snippets/minithemeswitcher title: $:/snippets/minithemeswitcher
\define lingo-base() $:/language/ControlPanel/Appearance/Theme/ \define lingo-base() $:/language/ControlPanel/Appearance/Theme/
<<lingo Prompt>> <$view tiddler={{$:/theme}} field="name"/> <<lingo Prompt>> <$select tiddler="$:/theme">
<$list filter="[plugin-type[theme]sort[title]]">
<$linkcatcher to="$:/theme"> <option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option>
<$list filter="[plugin-type[theme]sort[title]]"><div><$reveal state="$:/theme" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/theme" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="name" format="text"/></$link></div>
</$list> </$list>
</$linkcatcher> </$select>

View File

@ -1,9 +1,8 @@
title: $:/snippets/viewswitcher title: $:/snippets/viewswitcher
\define lingo-base() $:/language/ControlPanel/Appearance/StoryView/ \define lingo-base() $:/language/ControlPanel/Appearance/StoryView/
<<lingo Prompt>> {{$:/view}} <<lingo Prompt>> <$select tiddler="$:/view">
<$list filter="[storyviews[]]">
<$linkcatcher to="$:/view"><$list filter="[storyviews[]]"><div><$reveal state="$:/view" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/view" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="title"/></$link> <option><$view field="title"/></option>
</div>
</$list> </$list>
</$linkcatcher> </$select>