]> git.mxchange.org Git - friendica.git/commitdiff
issue 2240 when no addon are installed hint the location of sources in the admin...
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 10 Jan 2016 12:04:07 +0000 (13:04 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 15 Jan 2016 17:19:22 +0000 (18:19 +0100)
mod/admin.php
view/templates/admin_plugins.tpl

index 34e9b5c03b6aa34145b45b013827e9ac1a011c56..16c3a23d4d3955eb222c072a39e7d60efb3a962a 100644 (file)
@@ -1441,6 +1441,8 @@ function admin_page_plugins(&$a){
                '$baseurl' => $a->get_baseurl(true),
                '$function' => 'plugins',
                '$plugins' => $plugins,
+               '$pcount' => count($plugins), 
+               '$noplugshint' => sprintf( t('There are currently no plugins available on your node. You can find the official plugin repository at %1$s and might find other interesting plugins in the open plugin registry at %2$s'), 'https://github.com/friendica/friendica-addons', 'http://addons.friendi.ca'),
                '$form_security_token' => get_form_security_token("admin_themes"),
        ));
 }
index 6caa04a3a42dfc2228b2980294aac56459daec1c..fb1f26a90c9678eac05bc488915504e255bb36dd 100644 (file)
@@ -2,6 +2,11 @@
 <div id='adminpage'>
        <h1>{{$title}} - {{$page}}</h1>
                <a class="btn" href="{{$baseurl}}/admin/{{$function}}?a=r&amp;t={{$form_security_token}}">{{$reload}}</a>
+               {{if $pcount eq 0}}
+                   <div class="XXX">
+                   {{$noplugshint}}
+                   </div>
+               {{else}}
                <ul id='pluginslist'>
                {{foreach $plugins as $p}}
                        <li class='plugin {{$p.1}}'>
@@ -13,4 +18,5 @@
                        </li>
                {{/foreach}}
                </ul>
+               {{/if}}
 </div>