2013-11-10 21:40:03 +00:00
|
|
|
title: $:/core/ui/ControlPanel/Plugins
|
|
|
|
tags: $:/tags/ControlPanel
|
2014-02-15 13:29:24 +00:00
|
|
|
caption: {{$:/language/ControlPanel/Plugins/Caption}}
|
2013-11-10 21:40:03 +00:00
|
|
|
|
2014-02-15 13:29:24 +00:00
|
|
|
\define lingo-base() $:/language/ControlPanel/Plugins/
|
2014-08-07 14:48:38 +00:00
|
|
|
\define popup-state-macro()
|
|
|
|
$(qualified-state)$-$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
\define tabs-state-macro()
|
|
|
|
$(popup-state)$-$(pluginInfoType)$
|
|
|
|
\end
|
|
|
|
\define plugin-icon-title()
|
|
|
|
$(currentTiddler)$/icon
|
|
|
|
\end
|
2014-08-15 20:10:40 +00:00
|
|
|
\define plugin-disable-title()
|
|
|
|
$:/config/Plugins/Disabled/$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
\define plugin-table-body(type,disabledMessage)
|
2014-08-08 16:19:48 +00:00
|
|
|
<div class="tw-plugin-info-chunk">
|
2014-08-07 14:48:38 +00:00
|
|
|
<$reveal type="nomatch" state=<<popup-state>> text="yes">
|
|
|
|
<$button class="btn-invisible btn-dropdown" set=<<popup-state>> setTo="yes">
|
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<popup-state>> text="yes">
|
|
|
|
<$button class="btn-invisible btn-dropdown" set=<<popup-state>> setTo="no">
|
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2014-08-08 09:01:21 +00:00
|
|
|
</div>
|
2014-08-08 16:19:48 +00:00
|
|
|
<div class="tw-plugin-info-chunk">
|
2014-08-08 09:01:21 +00:00
|
|
|
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
|
|
|
|
<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
|
|
|
|
</$transclude>
|
|
|
|
</div>
|
2014-08-08 16:19:48 +00:00
|
|
|
<div class="tw-plugin-info-chunk">
|
2014-08-08 09:01:21 +00:00
|
|
|
<div>
|
2014-08-15 20:10:40 +00:00
|
|
|
''<$view field="description"><$view field="title"/></$view>'' $disabledMessage$
|
2014-08-08 09:01:21 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2014-08-08 15:35:17 +00:00
|
|
|
<$view field="title"/>
|
2014-08-08 09:01:21 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2014-03-13 17:43:18 +00:00
|
|
|
<$view field="version"/>
|
2014-08-08 09:01:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-15 20:10:40 +00:00
|
|
|
\end
|
|
|
|
\define plugin-table(type)
|
|
|
|
<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
|
|
|
|
<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]" emptyMessage=<<lingo "Empty/Hint">>>
|
|
|
|
<$set name="popup-state" value=<<popup-state-macro>>>
|
|
|
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
|
|
|
<$link to={{!!title}} class="tw-plugin-info">
|
|
|
|
<<plugin-table-body type:"$type$">>
|
|
|
|
</$link>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
|
|
|
<$link to={{!!title}} class="tw-plugin-info tw-plugin-info-disabled">
|
|
|
|
<<plugin-table-body type:"$type$" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">>
|
2014-08-08 09:01:21 +00:00
|
|
|
</$link>
|
2014-08-15 20:10:40 +00:00
|
|
|
</$reveal>
|
2014-08-07 14:48:38 +00:00
|
|
|
<$reveal type="match" text="yes" state=<<popup-state>>>
|
2014-08-08 09:01:21 +00:00
|
|
|
<div class="tw-plugin-info-dropdown">
|
2014-08-15 20:10:40 +00:00
|
|
|
<$list filter="[all[current]] -[[$:/core]]">
|
|
|
|
<div style="float:right;">
|
|
|
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
|
|
|
<$button set=<<plugin-disable-title>> setTo="yes" title={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>
|
|
|
|
<<lingo Disable/Caption>>
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
|
|
|
<$button set=<<plugin-disable-title>> setTo="no" title={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>
|
|
|
|
<<lingo Enable/Caption>>
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2014-08-08 09:01:21 +00:00
|
|
|
</div>
|
2014-08-15 20:10:40 +00:00
|
|
|
</$list>
|
|
|
|
<$reveal type="nomatch" text="" state="!!list">
|
|
|
|
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList={{!!list}} default="readme" template="$:/core/ui/PluginInfo"/>
|
2014-08-07 14:48:38 +00:00
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" text="" state="!!list">
|
2014-08-08 09:01:21 +00:00
|
|
|
No information provided
|
2014-08-07 14:48:38 +00:00
|
|
|
</$reveal>
|
2014-08-15 20:10:40 +00:00
|
|
|
</div>
|
2014-08-07 14:48:38 +00:00
|
|
|
</$reveal>
|
|
|
|
</$set>
|
2014-03-13 17:43:18 +00:00
|
|
|
</$list>
|
2014-08-07 14:48:38 +00:00
|
|
|
</$set>
|
2014-03-13 17:43:18 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
! <<lingo Plugin/Prompt>>
|
|
|
|
|
|
|
|
<<plugin-table plugin>>
|
|
|
|
|
|
|
|
! <<lingo Theme/Prompt>>
|
|
|
|
|
|
|
|
<<plugin-table theme>>
|
|
|
|
|
|
|
|
! <<lingo Language/Prompt>>
|
|
|
|
|
|
|
|
<<plugin-table language>>
|