From 77db136d4f68fd65aaffc70335abbc4446358609 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 18 Mar 2015 11:46:37 +0000 Subject: [PATCH] Missed off previous commit --- core/ui/ControlPanel/Plugins.tid | 105 +++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 core/ui/ControlPanel/Plugins.tid diff --git a/core/ui/ControlPanel/Plugins.tid b/core/ui/ControlPanel/Plugins.tid new file mode 100644 index 000000000..b56acaf94 --- /dev/null +++ b/core/ui/ControlPanel/Plugins.tid @@ -0,0 +1,105 @@ +title: $:/core/ui/ControlPanel/Plugins +tags: $:/tags/ControlPanel +caption: {{$:/language/ControlPanel/Plugins/Caption}} + +\define lingo-base() $:/language/ControlPanel/Plugins/ + +\define popup-state-macro() +$(qualified-state)$-$(currentTiddler)$ +\end + +\define tabs-state-macro() +$(popup-state)$-$(pluginInfoType)$ +\end + +\define plugin-icon-title() +$(currentTiddler)$/icon +\end + +\define plugin-disable-title() +$:/config/Plugins/Disabled/$(currentTiddler)$ +\end + +\define plugin-table-body(type,disabledMessage) +
+<$reveal type="nomatch" state=<> text="yes"> +<$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="yes"> +{{$:/core/images/right-arrow}} + + +<$reveal type="match" state=<> text="yes"> +<$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="no"> +{{$:/core/images/down-arrow}} + + +
+
+<$transclude tiddler=<> subtiddler=<>> +<$transclude tiddler="$:/core/images/plugin-generic-$type$"/> + +
+
+

+''<$view field="description"><$view field="title"/>'' $disabledMessage$ +

+

+<$view field="title"/> +

+

+
<$view field="version"/>
+

+
+\end + +\define plugin-table(type) +<$set name="qualified-state" value=<>> +<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]" emptyMessage=<>> +<$set name="popup-state" value=<>> +<$reveal type="nomatch" state=<> text="yes"> +<$link to={{!!title}} class="tc-plugin-info"> +<> + + +<$reveal type="match" state=<> text="yes"> +<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled"> +<">> + + +<$reveal type="match" text="yes" state=<>> +
+
+<$list filter="[all[current]] -[[$:/core]]"> +
+<$reveal type="nomatch" state=<> text="yes"> +<$button set=<> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}> +<> + + +<$reveal type="match" state=<> text="yes"> +<$button set=<> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}> +<> + + +
+ +<$reveal type="nomatch" text="" state="!!list"> +<$macrocall $name="tabs" state=<> tabsList={{!!list}} default="readme" template="$:/core/ui/PluginInfo"/> + +<$reveal type="match" text="" state="!!list"> +No information provided + +
+
+ + + + +\end + +<$button message="tm-modal" param="$:/core/ui/ControlPanel/Modals/AddPlugins" tooltip=<> class="tc-btn-big-green" style="background:blue;"> +{{$:/core/images/download-button}} <> + + +<> + +<>