nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitweb/angular: introduce entity-tag directive
[nit.git]
/
share
/
nitweb
/
directives
/
entity
/
tag.html
diff --git a/share/nitweb/directives/entity/tag.html
b/share/nitweb/directives/entity/tag.html
new file mode 100644
(file)
index 0000000..
7c69f1e
--- /dev/null
+++ b/
share/nitweb/directives/entity/tag.html
@@ -0,0
+1,5
@@
+<span class="glyphicon glyphicon-tag" ng-class='{
+ "text-success": mentity.visibility == "public",
+ "text-warning": mentity.visibility == "protected",
+ "text-danger": mentity.visibility == "private",
+}' />