Files: 8cbcf91233c73cb8de180f682d84a828fdbde387 / modules / avatar-profile.js
511 bytesRaw
1 | var h = require('hyperscript') |
2 | var plugs = require('../plugs') |
3 | |
4 | |
5 | var avatar_image = plugs.first(exports.avatar_image = []) |
6 | var avatar_name = plugs.first(exports.avatar_name = []) |
7 | var avatar_action = plugs.map(exports.avatar_action = []) |
8 | var avatar_edit = plugs.first(exports.avatar_edit = []) |
9 | |
10 | exports.avatar_profile = function (id) { |
11 | return avatar_edit(id) |
12 | |
13 | return h('div.row.profile', |
14 | avatar_image(id), |
15 | h('div.profile__info', |
16 | h('strong', avatar_name(id)), |
17 | avatar_action(id)) |
18 | ) |
19 | } |
20 |
Built with git-ssb-web