Merge 295eead3c8
into 64f5dd942c
This commit is contained in:
commit
d7f05d6a3b
|
@ -3,27 +3,38 @@ tags: $:/tags/ControlPanel/Appearance
|
|||
caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
|
||||
|
||||
\whitespace trim
|
||||
<$linkcatcher to="$:/layout">
|
||||
<div class="tc-chooser">
|
||||
<$list filter="[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]">
|
||||
<$list
|
||||
filter="[{$:/layout}!has[text]]"
|
||||
variable="ignore"
|
||||
emptyMessage="""\whitespace trim
|
||||
<$set name="cls" filter="[all[current]field:title{$:/layout}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
<div class=<<cls>>>
|
||||
<$link to={{!!title}}>
|
||||
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
||||
</$link></div></$set>
|
||||
""">
|
||||
<$set name="cls" filter="[all[current]field:title[$:/core/ui/PageTemplate]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
\procedure layouts-filter() [all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]
|
||||
|
||||
\procedure layout-item()
|
||||
<div class=<<cls>>>
|
||||
<$link to={{!!title}}>
|
||||
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
||||
</$link>
|
||||
</div>
|
||||
</$set>
|
||||
</$list>
|
||||
</$list>
|
||||
<$link to={{!!title}} tabindex=<<tabIndex>>>
|
||||
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
||||
</$link>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\procedure input-next-actions(step:1)
|
||||
\function layouts() [subfilter<layouts-filter>]
|
||||
<$log layouts=<<layouts>> bbb="bbb" />
|
||||
<$action-sendmessage $message="tm-navigate" $param={{{[<layouts>cycle<layouts>,<step>]}}}/>
|
||||
\end
|
||||
|
||||
<$linkcatcher to="$:/layout">
|
||||
<$keyboard key="((input-up))" actions=<<input-next-actions>>>
|
||||
<$keyboard key="((input-down))" actions=<<input-next-actions "-1">>>
|
||||
<div class="tc-chooser">
|
||||
<$list filter=<<layouts-filter>> counter="tabIndex">
|
||||
<% if [{$:/layout}has[text]] %>
|
||||
<$set name="cls" filter="[all[current]field:title{$:/layout}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
<<layout-item>>
|
||||
</$set>
|
||||
<% else %>
|
||||
<$set name="cls" filter="[all[current]field:title[$:/core/ui/PageTemplate]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
<<layout-item>>
|
||||
</$set>
|
||||
<% endif %>
|
||||
</$list>
|
||||
</div>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
</$linkcatcher>
|
||||
|
|
Loading…
Reference in New Issue