Skip to content

Commit

Permalink
Use v5.3.x syntax for $:/core/ui/PageTemplate/pagecontrols (#8088)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmario authored Mar 28, 2024
1 parent f1e707b commit e43cd2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 7 additions & 9 deletions core/ui/PageControls.tid
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
title: $:/core/ui/PageTemplate/pagecontrols

\whitespace trim
\define config-title() $:/config/PageControlButtons/Visibility/$(listItem)$
\function config-title() [[$:/config/PageControlButtons/Visibility/$(listItem)$]substitute[]]

<div class="tc-page-controls">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
<$set name="hidden" value=<<config-title>>>
<$list filter="[<hidden>!text[hide]]" storyview="pop" variable="ignore">
<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
<$transclude tiddler=<<listItem>> mode="inline"/>
</$set>
</$list>
</$set>
<$list filter="[<config-title>!text[hide]]" storyview="pop" variable="ignore">
<$let tv-config-toolbar-class={{{ [enlist<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]] +[join[ ]] }}}>
<$transclude $tiddler=<<listItem>> $mode="inline"/>
</$let>
</$list>
</$list>
</div>
</div>
1 change: 1 addition & 0 deletions themes/tiddlywiki/vanilla/base.tid
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ button.tc-btn-invisible.tc-remove-tag-button {

.tc-page-controls {
margin-top: 14px;
margin-bottom: 14px;
font-size: 1.5em;
}

Expand Down

0 comments on commit e43cd2d

Please sign in to comment.