Datatables (hazelnut) added a link on the hrn to look at a single resource
[myslice.git] / plugins / hazelnut / static / js / hazelnut.js
index e9753e2..f17eb25 100644 (file)
                         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]]);