CRM-13823 - Show help for system status page
authorColeman Watts <coleman@civicrm.org>
Thu, 22 Oct 2015 16:24:43 +0000 (12:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 22 Oct 2015 16:24:43 +0000 (12:24 -0400)
ang/crmStatusPage/StatusPage.html
ang/crmStatusPage/StatusPageCtrl.js

index ded27d0e4c7d8f2c02abfcb9ee8034e92da62894..2c5a9cd3ac49eb75e22597ae38cf170af8b7f4fc 100644 (file)
       <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/>
index 823439ba480e627eaeb28a0dfea75e51e17d3c2e..bec4df34f16136c0134d2b63e2f73b67274a6d23 100644 (file)
@@ -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) {