mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Use the select widget in the various switchers
This commit is contained in:
parent
3182a2d599
commit
0ccaedd7d2
@ -1,8 +1,7 @@
|
||||
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>
|
||||
|
||||
<$linkcatcher to="$:/language">
|
||||
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}> </$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
|
||||
{{$:/language/ControlPanel/Basics/Language/Prompt}} <$select tiddler="$:/language">
|
||||
<$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>
|
||||
</$linkcatcher>
|
||||
</$select>
|
@ -1,6 +1,7 @@
|
||||
title: $:/snippets/minilanguageswitcher
|
||||
|
||||
<$linkcatcher to="$:/language">
|
||||
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}> </$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
|
||||
<$select tiddler="$:/language">
|
||||
<$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>
|
||||
</$linkcatcher>
|
||||
</$select>
|
@ -1,9 +1,8 @@
|
||||
title: $:/snippets/minithemeswitcher
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Appearance/Theme/
|
||||
<<lingo Prompt>> <$view tiddler={{$:/theme}} field="name"/>
|
||||
|
||||
<$linkcatcher to="$:/theme">
|
||||
<$list filter="[plugin-type[theme]sort[title]]"><div><$reveal state="$:/theme" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/theme" type="nomatch" text={{!!title}}> </$reveal> <$link to={{!!title}}><$view field="name" format="text"/></$link></div>
|
||||
<<lingo Prompt>> <$select tiddler="$:/theme">
|
||||
<$list filter="[plugin-type[theme]sort[title]]">
|
||||
<option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
</$select>
|
@ -1,9 +1,8 @@
|
||||
title: $:/snippets/viewswitcher
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Appearance/StoryView/
|
||||
<<lingo Prompt>> {{$:/view}}
|
||||
|
||||
<$linkcatcher to="$:/view"><$list filter="[storyviews[]]"><div><$reveal state="$:/view" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/view" type="nomatch" text={{!!title}}> </$reveal> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
</div>
|
||||
<<lingo Prompt>> <$select tiddler="$:/view">
|
||||
<$list filter="[storyviews[]]">
|
||||
<option><$view field="title"/></option>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
</$select>
|
Loading…
Reference in New Issue
Block a user