$angularModules['ui.bootstrap'] = include "$civicrm_root/ang/ui.bootstrap.ang.php";
$angularModules['ui.sortable'] = include "$civicrm_root/ang/ui.sortable.ang.php";
$angularModules['unsavedChanges'] = include "$civicrm_root/ang/unsavedChanges.ang.php";
- $angularModules['statuspage'] = include "$civicrm_root/ang/crmStatusPage.ang.php";
+ $angularModules['crmStatusPage'] = include "$civicrm_root/ang/crmStatusPage.ang.php";
$angularModules['exportui'] = include "$civicrm_root/ang/exportui.ang.php";
$angularModules['api4Explorer'] = include "$civicrm_root/ang/api4Explorer.ang.php";
$angularModules['api4'] = include "$civicrm_root/ang/api4.ang.php";
<?php
// This file declares an Angular module which can be autoloaded
-// ODDITY: Angular name 'statuspage' doesn't match the file name 'crmStatusPage'.
return [
'ext' => 'civicrm',
(function(angular, $, _) {
- angular.module('statuspage', CRM.angRequires('statuspage'));
+ angular.module('crmStatusPage', CRM.angRequires('crmStatusPage'));
// router
- angular.module('statuspage').config( function($routeProvider) {
+ angular.module('crmStatusPage').config( function($routeProvider) {
$routeProvider.when('/status', {
- controller: 'statuspageStatusPage',
- templateUrl: '~/statuspage/StatusPage.html',
+ controller: 'crmStatusPageCtrl',
+ templateUrl: '~/crmStatusPage/StatusPage.html',
resolve: {
statusData: function(crmApi) {
(function(angular, $, _) {
- angular.module('statuspage').controller('statuspageStatusPage',
+ angular.module('crmStatusPage').controller('crmStatusPageCtrl',
function($scope, crmApi, crmStatus, statusData) {
$scope.ts = CRM.ts();
$scope.help = CRM.help;
}]
], 'Set preference');
};
-
+
$scope.countVisible = function(visibility) {
return _.filter($scope.statuses, function(s) {
return s.is_visible == visibility && s.severity_id >= 2;
(function(angular, $, _) {
- angular.module('statuspage')
+ angular.module('crmStatusPage')
.filter('trusted', function($sce){ return $sce.trustAsHtml; })
// Todo: abstract this into a generic crmUi directive?
.directive('statuspagePopupMenu', function($timeout) {
return {
- templateUrl: '~/statuspage/SnoozeOptions.html',
+ templateUrl: '~/crmStatusPage/SnoozeOptions.html',
transclude: true,
link: function(scope, element, attr) {