git ssb

16+

Dominic / patchbay



Tree: dbe8a8578e6c6cdb350c1d250ad3d646610b339f

Files: dbe8a8578e6c6cdb350c1d250ad3d646610b339f / modules_basic / 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