Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1001 B

  1. <script>
  2. // update pending count //
  3. $(function(){
  4. $("nav").bind('nav-update', function(e,data){
  5. var elm = $('#pending-update');
  6. var register = $(data).find('register').text();
  7. if (register=="0") { reigster=""; elm.hide();} else { elm.show(); }
  8. elm.html(register);
  9. console.log(elm, data, register);
  10. });
  11. });
  12. </script>
  13. <h4><a href="$admurl">Admin</a></h4>
  14. <ul>
  15. <li class='admin link $admin.site.2'><a href='$admin.site.0'>$admin.site.1</a></li>
  16. <li class='admin link $admin.users.2'><a href='$admin.users.0'>$admin.users.1</a><span id='pending-update' title='$h_pending'></span></li>
  17. <li class='admin link $admin.plugins.2'><a href='$admin.plugins.0'>$admin.plugins.1</a></li>
  18. </ul>
  19. {{ if $admin.plugins_admin }}<h4>Plugins</h4>{{ endif }}
  20. <ul>
  21. {{ for $admin.plugins_admin as $l }}
  22. <li class='admin link $l.2'><a href='$l.0'>$l.1</a></li>
  23. {{ endfor }}
  24. </ul>
  25. <h4>Logs</h4>
  26. <ul>
  27. <li class='admin link $admin.logs.2'><a href='$admin.logs.0'>$admin.logs.1</a></li>
  28. </ul>