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