mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 06:44:50 +00:00
a51191d334
* Support specifying insertbefore position title as parameter
Closes: #6133
* Update insertbefore calls with new variable parameter syntax
See-also: 96b52606a
(Support specifying insertbefore position title as parameter, 2022-02-21)
43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
title: $:/core/ui/SideBar/Open
|
|
tags: $:/tags/SideBar
|
|
caption: {{$:/language/SideBar/Open/Caption}}
|
|
|
|
\define lingo-base() $:/language/CloseAll/
|
|
|
|
\define drop-actions()
|
|
<$action-listops $tiddler="$:/StoryList" $subfilter="+[insertbefore<actionTiddler>,<currentTiddler>]"/>
|
|
\end
|
|
|
|
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
|
<div style="position: relative;">
|
|
<$droppable actions=<<drop-actions>>>
|
|
<div class="tc-droppable-placeholder">
|
|
|
|
</div>
|
|
<div>
|
|
<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
|
|
|
<$set name="state" value={{{ [[$:/state/viewtemplate/visibility/]addsuffix<currentTiddler>] }}}>
|
|
<$reveal type="match" stateTitle=<<state>> text="0">
|
|
<span style="display: inline-block; background: red; color: white; padding: 2px; border-radius: 2px;font-size: 0.5em;line-height: 1;text-shadow: none;font-weight: bold;vertical-align: middle;">OUT OF VIEW</span>
|
|
</$reveal>
|
|
<$reveal type="match" stateTitle=<<state>> text="1">
|
|
<span style="display: inline-block; background: green; color: white; padding: 2px; border-radius: 2px;font-size: 0.5em;line-height: 1;text-shadow: none;font-weight: bold;vertical-align: middle;">NEAR</span>
|
|
</$reveal>
|
|
<$reveal type="match" stateTitle=<<state>> text="2">
|
|
<span style="display: inline-block; background: purple; color: white; padding: 2px; border-radius: 2px;font-size: 0.5em;line-height: 1;text-shadow: none;font-weight: bold;vertical-align: middle;">VISIBLE</span>
|
|
</$reveal>
|
|
</$set>
|
|
</div>
|
|
</$droppable>
|
|
</div>
|
|
</$list>
|
|
<$tiddler tiddler="">
|
|
<$droppable actions=<<drop-actions>>>
|
|
<div class="tc-droppable-placeholder">
|
|
|
|
</div>
|
|
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
|
|
</$droppable>
|
|
</$tiddler>
|