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-location directive
[nit.git]
/
share
/
nitweb
/
directives
/
entity
/
location.html
diff --git a/share/nitweb/directives/entity/location.html
b/share/nitweb/directives/entity/location.html
new file mode 100644
(file)
index 0000000..
7e817c6
--- /dev/null
+++ b/
share/nitweb/directives/entity/location.html
@@ -0,0
+1,5
@@
+<span ng-if='mentity.location'>
+ <a ng-href="{{mentity.web_url}}">{{mentity.location.file}}
+ <span ng-if='mentity.location.line_start'>:{{mentity.location.line_start}}</span>
+ </a>
+</span>