mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 01:50:28 +00:00
b1d218065e
To stop unintended submission if the user presses enter
40 lines
1.7 KiB
Plaintext
40 lines
1.7 KiB
Plaintext
title: $:/templates/SideBar
|
|
|
|
<!-- The implementation of tabs here is currently a bit unreadable -->
|
|
|
|
@@.search-query
|
|
<$edit tiddler="$:/temp/search" type="search" requireFocus="yes"/>
|
|
@@
|
|
|
|
<$reveal state="$:/temp/search" type="nomatch" text="">
|
|
|
|
<div class="tw-search-results">
|
|
|
|
<$list filter="[!is[system]searchVia[$:/temp/search]sort[title]limit[50]]" emptyMessage="//No results//"/>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal state="$:/temp/search" type="match" text="">
|
|
|
|
<div class="tw-tab-set">
|
|
<div class="tw-tab-buttons"><$button type="set" set="$:/state/sideBarTabSet" setTo="openTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Open</$button><$button type="set" set="$:/state/sideBarTabSet" setTo="allTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">All</$button><$button type="set" set="$:/state/sideBarTabSet" setTo="toolsTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Tools</$button><$button type="set" set="$:/state/sideBarTabSet" setTo="moreTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">More</$button></div>
|
|
<div class="tw-tab-contents">
|
|
<$reveal type="match" state="$:/state/sideBarTabSet" text="openTab" qualifyTiddlerTitles="yes">
|
|
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" itemClass="tw-menu-list-item"/>
|
|
</$reveal>
|
|
<$reveal type="match" state="$:/state/sideBarTabSet" text="allTab" qualifyTiddlerTitles="yes">
|
|
<$list filter="[!is[system]sort[title]]" itemClass="tw-menu-list-item"/>
|
|
</$reveal>
|
|
<$reveal type="match" state="$:/state/sideBarTabSet" text="toolsTab" qualifyTiddlerTitles="yes">
|
|
{{$:/templates/ControlPanel}}
|
|
</$reveal>
|
|
</div>
|
|
<$reveal type="match" state="$:/state/sideBarTabSet" text="moreTab" qualifyTiddlerTitles="yes">
|
|
{{$:/templates/MoreSideBar}}
|
|
</$reveal>
|
|
</div>
|
|
|
|
</$reveal>
|