git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302efe6
)
Datatables (hazelnut) added a link on the hrn to look at a single resource
author
Loic Baron
<loic.baron@lip6.fr>
Sat, 12 Oct 2013 14:42:15 +0000
(16:42 +0200)
committer
Loic Baron
<loic.baron@lip6.fr>
Sat, 12 Oct 2013 14:42:15 +0000
(16:42 +0200)
plugins/hazelnut/static/js/hazelnut.js
patch
|
blob
|
history
diff --git
a/plugins/hazelnut/static/js/hazelnut.js
b/plugins/hazelnut/static/js/hazelnut.js
index
e9753e2
..
f17eb25
100644
(file)
--- a/
plugins/hazelnut/static/js/hazelnut.js
+++ b/
plugins/hazelnut/static/js/hazelnut.js
@@
-186,6
+186,9
@@
line.push('');
else
line.push(record['hostname']);
+
+ } else if (colnames[j] == 'hrn' && typeof(record) != 'undefined') {
+ line.push('<a href="../resource/'+record['urn']+'"><span class="glyphicon glyphicon-search"></span></a> '+record['hrn']);
} else {
if (record[colnames[j]])
line.push(record[colnames[j]]);