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