Datatables (hazelnut) added a link on the hrn to look at a single resource
authorLoic Baron <loic.baron@lip6.fr>
Sat, 12 Oct 2013 14:42:15 +0000 (16:42 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Sat, 12 Oct 2013 14:42:15 +0000 (16:42 +0200)
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]]);