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