git ssb

0+

ev / microbay



forked from Dominic / patchbay

Tree: 94b5d7d7eb82f9dc4ba29afbc22997a9107f3483

Files: 94b5d7d7eb82f9dc4ba29afbc22997a9107f3483 / modules / avatar-link.js

426 bytesRaw
1var h = require('hyperscript')
2var plugs = require('../plugs')
3var avatar_name = plugs.first(exports.avatar_name = [])
4
5var signifier = require('../plugs').first(exports.signifier = [])
6
7exports.avatar_link = function (id, element) {
8
9 var link = h('a.avatar', {href: "#"+id, title: id}, element)
10
11 signifier(id, function (_, names) {
12 if(names.length)
13 link.title = names[0].name + '\n '+id
14 })
15
16 return link
17}
18
19

Built with git-ssb-web