Plumbing to allow the current view to be switched

print-window-tiddler
Jeremy Ruston 2013-07-08 15:19:12 +01:00
rodzic 24ad677d75
commit 9fbb945b0a
4 zmienionych plików z 27 dodań i 8 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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}}

Wyświetl plik

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

Wyświetl plik

@ -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>