git ssb

16+

Dominic / patchbay



Tree: 6b7437f1d5284034579577ef86dec032a5d44367

Files: 6b7437f1d5284034579577ef86dec032a5d44367 / modules_extra / music-release.js

1186 bytesRaw
1var markdown = require('ssb-markdown');
2var h = require('hyperscript');
3var u = require('../util');
4var ref = require('ssb-ref');
5
6//render a message
7
8var plugs = require('../plugs');
9var message_link = plugs.first(exports.message_link = []);
10var message_confirm = plugs.first(exports.message_confirm = []);
11var sbot_links = plugs.first(exports.sbot_links = []);
12
13exports.message_content = function(msg, sbot) {
14 if (msg.value.content.type !== 'music-release')
15 return;
16
17 var v = msg.value.content;
18 return h('div',
19 // h('img', { "src" : "http://localhost:7777/" + encodeURIComponent(v.cover) }),
20 h('h1', v.Title),
21 h("p", v.Description),
22 h("dl",
23
24 h("dt", "Creator"),
25 h("dd", v.Creator),
26
27 h("dt", "Identifier"),
28 h("dd", v.Identifier),
29
30 h("dt", "Published"),
31 h("dd", v.Publicdate),
32
33 h("dt", "Runtime"),
34 h("dd", v.Runtime),
35
36 h("dt", "Source"),
37 h("dd", v.Source),
38
39 h("dt", "License"),
40 h("dd", h('a', { href : v.Licenseurl }, "Link"))))
41}
42

Built with git-ssb-web