mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 21:45:47 +01:00
closes #2769
This commit is contained in:
@@ -60,6 +60,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
setupGraphs();
|
setupGraphs();
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
};
|
};
|
||||||
|
|
||||||
Admin.updateRoomUsage = function(err, data) {
|
Admin.updateRoomUsage = function(err, data) {
|
||||||
|
|||||||
@@ -52,9 +52,25 @@ adminController.home = function(req, res, next) {
|
|||||||
},
|
},
|
||||||
notices: function(next) {
|
notices: function(next) {
|
||||||
var notices = [
|
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: !meta.reloadRequired,
|
||||||
{done: plugins.hasListeners('filter:search.query'), doneText: 'Search Plugin Installed', notDoneText:'Search Plugin not installed'}
|
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);
|
plugins.fireHook('filter:admin.notices', notices, next);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,13 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- BEGIN notices -->
|
<!-- BEGIN notices -->
|
||||||
<div>
|
<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>
|
</div>
|
||||||
<!-- END notices -->
|
<!-- END notices -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user