Node.js based forum software built for the modern web
closes #2769
psychobunnya355fbfc81f4
diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.jsindex 6b7cdd5c28..b70e421023 100644--- a/public/src/admin/general/dashboard.js+++ b/public/src/admin/general/dashboard.js@@ -60,6 +60,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {});setupGraphs();+ $('[data-toggle="tooltip"]').tooltip();};Admin.updateRoomUsage = function(err, data) {diff --git a/src/controllers/admin.js b/src/controllers/admin.jsindex 9847d2d800..59e6680e8b 100644--- a/src/controllers/admin.js+++ b/src/controllers/admin.js@@ -52,9 +52,25 @@ adminController.home = function(req, res, next) {},notices: function(next) {var notices = [- {done: !meta.reloadRequired, doneText: 'Reload not required', notDoneText:'Reload required'},- {done: plugins.hasListeners('action:email.send'), doneText: 'Emailer Installed', notDoneText:'Emailer not installed'},- {done: plugins.hasListeners('filter:search.query'), doneText: 'Search Plugin Installed', notDoneText:'Search Plugin not installed'}+ {+ done: !meta.reloadRequired,+ doneText: 'Reload not required',+ notDoneText:'Reload required'+ },+ {+ done: plugins.hasListeners('action:email.send'),+ doneText: 'Emailer Installed',+ notDoneText:'Emailer not installed',+ tooltip:'Install an emailer plugin from the plugin page in order to activate registration emails and email digests',+ link:'/admin/extend/plugins'+ },+ {+ done: plugins.hasListeners('filter:search.query'),+ doneText: 'Search Plugin Installed',+ notDoneText:'Search Plugin not installed',+ tooltip: 'Install a search plugin from the plugin page in order to activate search functionality',+ link:'/admin/extend/plugins'+ }];plugins.fireHook('filter:admin.notices', notices, next);}diff --git a/src/views/admin/general/dashboard.tpl b/src/views/admin/general/dashboard.tplindex 132797fb3e..cec122fad5 100644--- a/src/views/admin/general/dashboard.tpl+++ b/src/views/admin/general/dashboard.tpl@@ -83,7 +83,13 @@<div class="panel-body"><!-- BEGIN notices --><div>- <!-- IF notices.done --><i class="fa fa-fw fa-check text-success"></i> {notices.doneText}<!-- ELSE --><i class="fa fa-fw fa-times text-danger"></i> {notices.notDoneText}<!-- ENDIF notices.done -->+ <!-- IF notices.done -->+ <i class="fa fa-fw fa-check text-success"></i> {notices.doneText}+ <!-- ELSE -->+ <!-- IF notices.link --><a href="{notices.link}" data-toggle="tooltip" title="{notices.tooltip}"><!-- ENDIF notices.link -->+ <i class="fa fa-fw fa-times text-danger"></i> {notices.notDoneText}+ <!-- IF notices.link --></a><!-- ENDIF notices.link -->+ <!-- ENDIF notices.done --></div><!-- END notices --></div>