Files: 682c62ee009cae46f4f5328ce86d4c2b938b2eb2 / 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