1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 09:50:27 +00:00

Make a control panel sidebar tab

This commit is contained in:
Jeremy Ruston 2013-03-18 22:43:08 +00:00
parent a1260dc57d
commit 43001d58d1
3 changed files with 14 additions and 12 deletions

View File

@ -0,0 +1,10 @@
title: $:/templates/ControlPanel
<$button message="tw-new-tiddler" class="btn btn-mini btn-success">New Tiddler</$button>
<$button message="tw-save-wiki" class="btn btn-mini btn-primary">Save Changes</$button>
---
{{$:/snippets/encryptionstatus}}

View File

@ -18,13 +18,6 @@ title: $:/templates/PageTemplate
<!-- The main story -->
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/templates/ViewTemplate" editTemplate="$:/templates/EditTemplate" listview="classic" itemClass="tw-tiddler-frame"/>
<!-- Config area -->
<div class="config-area">
! Temporary Control Panel
{{$:/snippets/encryptionstatus}}
</div>
<!-- End of story river -->
</section>

View File

@ -2,7 +2,7 @@ title: $:/templates/SideBar
<!-- The implementation of tabs here is currently a bit unreadable -->
<div class="tw-tab-set">
<div class="tw-tab-buttons"><$button type="set" set="myTabset" setTo="openTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Open</$button><$button type="set" set="myTabset" setTo="allTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">All</$button><$button type="set" set="myTabset" setTo="systemTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">System</$button></div>
<div class="tw-tab-buttons"><$button type="set" set="myTabset" setTo="openTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Open</$button><$button type="set" set="myTabset" setTo="allTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">All</$button><$button type="set" set="myTabset" setTo="systemTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">System</$button><$button type="set" set="myTabset" setTo="toolsTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Tools</$button></div>
<div class="tw-tab-contents">
<$reveal type="match" state="myTabset" text="openTab" qualifyTiddlerTitles="yes">
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" itemClass="tw-menu-list-item"/>
@ -13,9 +13,8 @@ title: $:/templates/SideBar
<$reveal type="match" state="myTabset" text="systemTab" qualifyTiddlerTitles="yes">
<$list filter="[is[system]sort[title]]" itemClass="tw-menu-list-item"/>
</$reveal>
<$reveal type="match" state="myTabset" text="toolsTab" qualifyTiddlerTitles="yes">
{{$:/templates/ControlPanel}}
</$reveal>
</div>
<div class="edit-controls">
<$button message="tw-new-tiddler" class="btn btn-mini btn-success">New</$button>
<$button message="tw-save-wiki" class="btn btn-mini btn-primary">Save</$button>
</div>