$.get( '/admin/plugins-market/check', function (data) { if (data.count.release > 0 || data.count.pre > 0) { $('ul.nav').prepend(` `); } if (data.count.release > 0) { $('ul#plugin-update-menu').append(`
  • ${trans('market.check.new', {'count': data.count.release.toString()})}
  • `); } if (data.count.pre > 0) { $('ul#plugin-update-menu').append(`
  • ${trans('market.check.pre', {'count': data.count.pre.toString()})}
  • `); } });