Skip to content

Commit

Permalink
use v5.3.x syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pmario committed Apr 21, 2024
1 parent 3e8e79b commit 0347dbc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions core/ui/ControlPanel/Basics.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ title: $:/core/ui/ControlPanel/Basics
tags: $:/tags/ControlPanel/Info
caption: {{$:/language/ControlPanel/Basics/Caption}}

\define lingo-base() $:/language/ControlPanel/Basics/
\procedure lingo-base() $:/language/ControlPanel/Basics/

\define show-filter-count(filter)
\whitespace trim

\procedure show-filter-count(filter)
<$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" $value="""$filter$"""/>
<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value="""$filter$"""/>
<$action-setfield $tiddler="$:/temp/advancedsearch" $value=<<filter>>/>
<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value=<<filter>>/>
<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
<$action-navigate $to="$:/AdvancedSearch"/>
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
''<$count filter="""$filter$"""/>''
''<$count filter=<<filter>>/>''
&#32;
{{$:/core/images/advanced-search-button}}
</$button>
\end
\whitespace trim

|tc-max-width tc-edit-max-width|k
|<<lingo Version/Prompt>> |''<<version>>'' |
Expand Down
11 changes: 7 additions & 4 deletions core/wiki/allfields.tid
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ title: $:/snippets/allfields
\whitespace trim
\import [[$:/core/ui/ControlPanel/Basics]]

\define renderfield(title)
\function getLingoText() [[$:/language/Docs/Fields/]] [<title>] +[join[]get[text]]

\procedure renderfield(title)
<tr class="tc-view-field">
<td class="tc-view-field-name">
''<$text text=<<__title__>>/>'':
''<$text text=<<title>>/>'':
</td>
<td class="tc-view-field-value">
//<$text text={{$:/language/Docs/Fields/$title$}}/>//
//<<getLingoText>>//
</td>
<td class="tc-view-field-links">
<<show-filter-count "[has[$title$]sort[]]">>
<!-- show-filter-count expects a filter string. It does no more processing -->
<$macrocall $name="show-filter-count" filter=`[has[$(title)$]sort[]]`>>
</td>
</tr>
\end
Expand Down

0 comments on commit 0347dbc

Please sign in to comment.