git ssb

16+

Dominic / patchbay



Tree: 9e65f9951f21778ee286834004367aa2b46bc882

Files: 9e65f9951f21778ee286834004367aa2b46bc882 / 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