Select Git revision
components.js
-
Benoit Lavenier authored
- Wot lookup modal: add options for multiple selection - Message: fix summary
Benoit Lavenier authored- Wot lookup modal: add options for multiple selection - Message: fix summary
components.js 1.58 KiB
angular.module('cesium')
.component('csAvatar', {
bindings: {
avatar: '<',
icon: '@'
},
template:
'<i ng-if="!$ctrl.avatar" class="item-image icon {{$ctrl.icon}}"></i>' +
'<i ng-if="$ctrl.avatar" class="item-image avatar" style="background-image: url({{::$ctrl.avatar.src}})"></i>'
})
.component('csBadgeCertification', {
bindings: {
requirements: '=',
parameters: '<',
csId: '@'
},
templateUrl: 'templates/common/badge_certification_count.html'
})
.component('csBadgeGivenCertification', {
bindings: {
identity: '=',
parameters: '<',
csId: '@'
},
templateUrl: 'templates/common/badge_given_certification_count.html'
})
.component('csSortIcon', {
bindings: {
asc: '=',
sort: '=',
toggle: '<'
},
template:
'<i class="ion-chevron-up" ng-class="{gray: !$ctrl.asc || $ctrl.sort != $ctrl.toggle}" style="position: relative;left : 5px; top:-5px; font-size: 9px;"></i>' +
'<i class="ion-chevron-down" ng-class="{gray : $ctrl.asc || $ctrl.sort != $ctrl.toggle}" style="position: relative; left: -2.6px; top: 3px; font-size: 9px;"></i>'
})
.component('csRemovableSelectionItem', {
transclude: true,
controller: function(){
this.$onInit = function(){
console.log("$onInit called: ", this);
};
this.remove = function(){
console.log("remove called: ", this);
};
},
template:
'<div >' +
' <ng-transclude></ng-transclude>' +
' <i class="icon ion-close" ng-click="$ctrl.remove();"></i>' +
'</div>'
})
;