1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Plumbing to allow the current view to be switched

This commit is contained in:
Jeremy Ruston 2013-07-08 15:19:12 +01:00
parent 24ad677d75
commit 9fbb945b0a
4 changed files with 27 additions and 8 deletions

View File

@ -22,7 +22,7 @@ title: $:/core/ui/PageTemplate
<section class="story-river">
<!-- The main story -->
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" listview="classic" itemClass="tw-tiddler-frame"/>
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" listview={{$:/view}} itemClass="tw-tiddler-frame"/>
<!-- End of story river -->
</section>

View File

@ -1,15 +1,18 @@
title: $:/core/ui/ToolsPanel
---
{{$:/snippets/viewswitcher}}
---
{{$:/snippets/themeswitcher}}
---
Import: <$import class="tw-drop-zone"/>
---
<$button message="tw-save-wiki" class="btn btn-primary">Save Changes</$button>
---
{{$:/snippets/encryptionstatus}}
---
{{$:/snippets/themeswitcher}}

3
core/wiki/view.tid Normal file
View File

@ -0,0 +1,3 @@
title: $:/view
classic

View File

@ -0,0 +1,13 @@
title: $:/snippets/viewswitcher
Current theme: {{$:/view}}
<$linkcatcher to="$:/view">
<$list filter="classic zoomin">
<$reveal state="$:/view" type="match" text={{##title}}>&bull;</$reveal><$reveal state="$:/view" type="nomatch" text={{##title}}>&nbsp;</$reveal> <$view field="title" format="link"/>
</$list>
</$linkcatcher>