mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 21:09:56 +00:00
use v5.3.x syntax for $:/core/ui/PageTemplate/sidebar
This commit is contained in:
parent
e809f6c4d3
commit
e19e5d07bf
@ -2,16 +2,18 @@ title: $:/core/ui/PageTemplate/sidebar
|
||||
tags: $:/tags/PageTemplate
|
||||
|
||||
\whitespace trim
|
||||
\define config-title() $:/config/SideBarSegments/Visibility/$(listItem)$
|
||||
\function config-title() [[$:/config/SideBarSegments/Visibility/$(listItem)$]substitute[]]
|
||||
|
||||
<$scrollable fallthrough="no" class="tc-sidebar-scrollable">
|
||||
<div class="tc-sidebar-header">
|
||||
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes" tag="div">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
|
||||
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
|
||||
<$transclude tiddler=<<listItem>> mode="block"/>
|
||||
</$reveal>
|
||||
</$list>
|
||||
</$reveal>
|
||||
</div>
|
||||
<$reveal state="$:/state/sidebar"
|
||||
tag="div" class="tc-sidebar-header"
|
||||
type="match" text="yes" default="yes"
|
||||
retain="yes" animate="yes"
|
||||
>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
|
||||
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
|
||||
<$transclude $tiddler=<<listItem>> $mode="block"/>
|
||||
</$reveal>
|
||||
</$list>
|
||||
</$reveal>
|
||||
</$scrollable>
|
||||
|
Loading…
Reference in New Issue
Block a user