From c08551c355033c12b49ef0d8bb1d56e9ad6d8d6f Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 31 May 2016 20:29:13 -0400 Subject: [PATCH] nitweb/angular: introduce entity-signature directive Signed-off-by: Alexandre Terrasa --- share/nitweb/directives/entity/signature.html | 51 +++++++++++++++++++++++++ share/nitweb/javascripts/entities.js | 10 +++++ 2 files changed, 61 insertions(+) create mode 100644 share/nitweb/directives/entity/signature.html diff --git a/share/nitweb/directives/entity/signature.html b/share/nitweb/directives/entity/signature.html new file mode 100644 index 0000000..f3f2dc6 --- /dev/null +++ b/share/nitweb/directives/entity/signature.html @@ -0,0 +1,51 @@ + + + {{modifier}} + + + + + + + [ + + + {{mparam.name}} + : + + + , + + ] + + + + + ( + + + {{mparam.name}} + + : + + + ... + + , + + ) + + + : + + + + + : + + + + : + + + diff --git a/share/nitweb/javascripts/entities.js b/share/nitweb/javascripts/entities.js index c55da8f..820af42 100644 --- a/share/nitweb/javascripts/entities.js +++ b/share/nitweb/javascripts/entities.js @@ -37,4 +37,14 @@ templateUrl: '/directives/entity/doc.html' }; }) + + .directive('entitySignature', function() { + return { + restrict: 'E', + scope: { + mentity: '=' + }, + templateUrl: '/directives/entity/signature.html' + }; + }) })(); -- 1.7.9.5