Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
--- /dev/null
+<div ng-if='listEntities.length > 0'>
+ <h3 id={{listId}}>
+ <span>{{listTitle}}</span>
+ </h3>
+ <div class='card-list'>
+ <entity-card
+ mentity='mentity'
+ ng-repeat='mentity in listEntities' />
+ </div>
+ </div>
+</div>
templateUrl: '/directives/entity/card.html'
};
})
+
+ .directive('entityList', function() {
+ return {
+ restrict: 'E',
+ scope: {
+ listEntities: '=',
+ listTitle: '@',
+ },
+ templateUrl: '/directives/entity/list.html',
+ };
+ })
})();
padding-left: 0px;
}
+.card-list {
+ margin-top: 10px;
+}
+
+.card-list > .card:first-child {
+ border-top: 1px solid #ccc;
+}
+
+.card-list > .card {
+ margin-top: 0;
+ border-top: none;
+}
+
/* doc */
.nitdoc .synopsys {