Files: 644b1ba03f8e4f6fd3bd1ae92d31b7eb55791fd3 / 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