git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Datatables (hazelnut) added a link on the hrn to look at a single resource
[myslice.git]
/
plugins
/
hazelnut
/
static
/
js
/
hazelnut.js
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']);
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]]);
} else {
if (record[colnames[j]])
line.push(record[colnames[j]]);