Commit 7a9da175 authored by colemanw's avatar colemanw

CRM-13823 - Show help for system status page

parent 165aab59
......@@ -24,7 +24,16 @@
<h4>
<div class="crm-block">
<div class="crm-group">
<div class="crm-status-message-body" ng-bind-html="status.message | trusted"></div>
<div class="crm-status-message-body">
<span ng-bind-html="status.message | trusted"></span>
<a
ng-if="status.help"
class="helpicon"
ng-click="alert(status.help, status.title, 'info');"
href="javascript:void(0)"
>
</a>
</div>
</div>
</div>
</h4><br/>
......
......@@ -6,12 +6,13 @@
function($scope, $location, crmApi, crmStatus, crmUiHelp, statuses, crmNavigator, preferences) {
// The ts() and hs() functions help load strings for this module.
var ts = $scope.ts = CRM.ts('statuspage');
var hs = $scope.hs = crmUiHelp({file: 'CRM/statuspage/StatusPage'}); // See: templates/CRM/statuspage/StatusPage.hlp
// var hs = $scope.hs = crmUiHelp({file: 'CRM/statuspage/StatusPage'}); // See: templates/CRM/statuspage/StatusPage.hlp
$scope.path = $location.path();
$scope.navigator = crmNavigator;
$scope.statuses = statuses;
$scope.preferences = preferences;
$scope.alert = CRM.alert;
// will "hush" a status - gets the severity level of the status that is being hushed, and hushes all alerts for that check at and below the level of the current check
$scope.hush = function(name, severity) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment