git ssb

0+

ev / microbay



forked from Dominic / patchbay

Tree: 94b5d7d7eb82f9dc4ba29afbc22997a9107f3483

Files: 94b5d7d7eb82f9dc4ba29afbc22997a9107f3483 / modules / avatar.js

648 bytesRaw
1var h = require('hyperscript')
2var u = require('../util')
3var plugs = require('../plugs')
4
5var avatar_name = plugs.first(exports.avatar_name = [])
6var avatar_image = plugs.first(exports.avatar_image = [])
7var avatar_link = plugs.first(exports.avatar_link = [])
8
9exports.avatar = function (author, classes) {
10 return exports.avatar_image_name_link(author, classes)
11}
12
13exports.avatar_image_name_link = function (author, classes) {
14 return avatar_link(author, [
15 avatar_image(author, classes),
16 avatar_name(author)
17 ])
18}
19
20exports.avatar_image_link = function (author, classes) {
21 return avatar_link(author, avatar_image(author, classes))
22}
23
24

Built with git-ssb-web