Files: cb94bd0d83fae7b007a0e33061df18c620bd6cb1 / modules / avatar.js
312 bytesRaw
1 | |
2 | var h = require('hyperscript') |
3 | var u = require('../util') |
4 | |
5 | exports.avatar_name = [] |
6 | exports.avatar_image = [] |
7 | |
8 | exports.avatar = function (author, sbot) { |
9 | return h('a.avatar', |
10 | {href:'#'+author}, |
11 | u.firstPlug(exports.avatar_image, author, sbot), |
12 | u.firstPlug(exports.avatar_name, author, sbot) |
13 | ) |
14 | } |
15 | |
16 |
Built with git-ssb-web