mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-11 16:21:02 -07:00
UI: Show cascade filter details in Advanced info tab (#9634)
* UI: Show details on cascade filters in the "Advanced info" tab * Update CascadeInfo.tid with new formatting * Remove codeblock for conciseness * Add change note for #9634 * Refactor CascadeInfo.tid for active filters Improve filter logic and names of variable * Change heading names Updated the CascadeInfo.tid to change 'Active Filter Condition' to 'Active Cascade Filter' and adjusted the corresponding variables.
This commit is contained in:
parent
0673426f5a
commit
cd8b1faa74
4 changed files with 50 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ Advanced/ShadowInfo/NotShadow/Hint: The tiddler <$link to=<<infoTiddler>>><$text
|
|||
Advanced/ShadowInfo/Shadow/Hint: The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler
|
||||
Advanced/ShadowInfo/Shadow/Source: It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>
|
||||
Advanced/ShadowInfo/OverriddenShadow/Hint: It is overridden by an ordinary tiddler
|
||||
Advanced/CascadeInfo/Heading: Cascade Details
|
||||
Fields/Caption: Fields
|
||||
List/Caption: List
|
||||
List/Empty: This tiddler does not have a list
|
||||
|
|
|
|||
38
core/ui/TiddlerInfo/Advanced/CascadeInfo.tid
Normal file
38
core/ui/TiddlerInfo/Advanced/CascadeInfo.tid
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
title: $:/core/ui/TiddlerInfo/Advanced/CascadeInfo
|
||||
tags: $:/tags/TiddlerInfo/Advanced
|
||||
|
||||
\define lingo-base() $:/language/TiddlerInfo/Advanced/CascadeInfo/
|
||||
<$let infoTiddler=<<currentTiddler>>>
|
||||
|
||||
''<<lingo Heading>>''
|
||||
|
||||
<table class="tc-max-width">
|
||||
<thead>
|
||||
<$list filter="[[View]] [[Active Cascade Filter]] [[Template]]" variable="heading">
|
||||
<th><<heading>></th>
|
||||
</$list>
|
||||
</thead>
|
||||
<$list filter="[[$:/tags/ViewTemplate]tagging[]]" variable="ViewTemplate">
|
||||
<tr>
|
||||
<$let
|
||||
view={{{ [<ViewTemplate>]+[split[/]last[]] }}}
|
||||
tagFilter=`$:/tags/ViewTemplate${ [<view>titlecase[]] }$Filter`
|
||||
activeCascadeFilterTiddler={{{ [all[shadows+tiddlers]tag<tagFilter>!is[draft]]:filter[<storyTiddler>subfilter{!!text}]+[first[]] }}}
|
||||
activeCascadeFilter={{{ [<activeCascadeFilterTiddler>get[text]] }}}
|
||||
activeTemplateTiddler={{{ [<currentTiddler>]:cascade[all[shadows+tiddlers]tag<tagFilter>!is[draft]get[text]] }}}
|
||||
>
|
||||
<%if [<activeCascadeFilterTiddler>!is[blank]]%>
|
||||
<td>
|
||||
<$link to=<<ViewTemplate>> ><<view>></$link>
|
||||
</td>
|
||||
<td>
|
||||
<$link to=<<activeCascadeFilterTiddler>> />
|
||||
</td>
|
||||
<td style="text-align:center;">
|
||||
<$link class="tc-btn-invisible" to=<<activeTemplateTiddler>>><$button class="tc-btn-invisible">{{$:/core/images/file}}</$button></$link>
|
||||
</td>
|
||||
<%endif%>
|
||||
</$let>
|
||||
</tr>
|
||||
</$list>
|
||||
</table>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
title: $:/tags/TiddlerInfo/Advanced
|
||||
list: [[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]
|
||||
list: [[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]] [[$:/core/ui/TiddlerInfo/Advanced/CascadeInfo]]
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
title: $:/changenotes/5.4.0/#9634
|
||||
description: Add "Cascade Details" to the Advanced tab of the Tiddler Info panel
|
||||
tags: $:/tags/ChangeNote
|
||||
release: 5.4.0
|
||||
change-type: enhancement
|
||||
change-category: hackability
|
||||
github-links: https://github.com/Jermolene/TiddlyWiki5/pull/9634
|
||||
github-contributors: DesignThinkerer
|
||||
|
||||
The Tiddler Info panel's `Advanced` tab now displays the templates and filters used to render the current tiddler.
|
||||
Loading…
Add table
Add a link
Reference in a new issue