forked from TiddlyWiki/TiddlyWiki5
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indentation for tiddlers that set tv-config-toolbar-class (Tiddly…
…Wiki#8079) human readable in preparation to add data-title=<<listItem>> for better UX defining a "read only" theme Changes to be committed: modified: core/ui/EditTemplate/controls.tid modified: core/ui/PageControls.tid modified: core/ui/PageControls/more-page-actions.tid modified: core/ui/ViewTemplate/title.tid modified: core/ui/ViewToolbar/more-tiddler-actions.tid modified: plugins/tiddlywiki/menubar/items/pagecontrols.tid
- Loading branch information
Showing
6 changed files
with
137 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
title: $:/core/ui/EditTemplate/controls | ||
tags: $:/tags/EditTemplate | ||
|
||
\define config-title() | ||
$:/config/EditToolbarButtons/Visibility/$(listItem)$ | ||
\end | ||
\define config-title() $:/config/EditToolbarButtons/Visibility/$(listItem)$ | ||
\whitespace trim | ||
<div class="tc-tiddler-title tc-tiddler-edit-title"> | ||
<$view field="title"/> | ||
<span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$let tv-config-toolbar-class={{{ [enlist<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]] +[join[ ]]}}}><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$let></$list></span> | ||
<div style="clear: both;"></div> | ||
<$view field="title"/> | ||
<span class="tc-tiddler-controls tc-titlebar"> | ||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"> | ||
<$let tv-config-toolbar-class={{{ [enlist<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]] +[join[ ]] }}}> | ||
<$reveal type="nomatch" state=<<config-title>> text="hide"> | ||
<$transclude $tiddler=<<listItem>>/> | ||
</$reveal> | ||
</$let> | ||
</$list> | ||
</span> | ||
<div style="clear: both;"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
title: $:/core/ui/PageTemplate/pagecontrols | ||
|
||
\whitespace trim | ||
\define config-title() | ||
$:/config/PageControlButtons/Visibility/$(listItem)$ | ||
\end | ||
\define config-title() $:/config/PageControlButtons/Visibility/$(listItem)$ | ||
|
||
<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> | ||
<$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> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters