aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/admin_plugins.tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-11 16:34:12 -0800
committerredmatrix <git@macgirvin.com>2016-01-11 16:34:12 -0800
commit66c8658898b16f6a6468bddbbc6f882b3eaf3a7d (patch)
treeab823b8a9c4be9f4cf218ac08f7e2a52267b4f4c /view/tpl/admin_plugins.tpl
parentf4d47f825df40095f5b66b039dc6ca2d689e6b16 (diff)
downloadvolse-hubzilla-66c8658898b16f6a6468bddbbc6f882b3eaf3a7d.tar.gz
volse-hubzilla-66c8658898b16f6a6468bddbbc6f882b3eaf3a7d.tar.bz2
volse-hubzilla-66c8658898b16f6a6468bddbbc6f882b3eaf3a7d.zip
plugin version compatibility checking. To use, set MinVersion, MaxVersion or MinPHPversion in the plugin header block. Case is not important. We check the project versions against STD_VERSION, which should be rolled to a new y of x.x.y if the plugin interface or project code changes in an incompatible way.
Diffstat (limited to 'view/tpl/admin_plugins.tpl')
-rwxr-xr-xview/tpl/admin_plugins.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl
index 0f76cc4fe..0da214c17 100755
--- a/view/tpl/admin_plugins.tpl
+++ b/view/tpl/admin_plugins.tpl
@@ -4,8 +4,12 @@
<ul id='pluginslist'>
{{foreach $plugins as $p}}
<li class='plugin {{$p.1}}'>
+ {{if ! $p.2.disabled}}
<a class='toggleplugin' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&amp;t={{$form_security_token}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><i class='{{if $p.1==on}}icon-check{{else}}icon-check-empty{{/if}} admin-icons'></i></a>
- <a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>
+ {{else}}
+ <i class='icon-stop admin-icons'></i>
+ {{/if}}
+ <a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>{{if $p.2.disabled}} {{$disabled}}{{/if}}
{{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
<div class='desc'>{{$p.2.description}}</div>