var markdown = require('ssb-markdown'); var h = require('hyperscript'); var u = require('../util'); var ref = require('ssb-ref'); //render a message var plugs = require('../plugs'); var message_link = plugs.first(exports.message_link = []); var message_confirm = plugs.first(exports.message_confirm = []); var sbot_links = plugs.first(exports.sbot_links = []); exports.message_content = function(msg, sbot) { if (msg.value.content.type !== 'music-release') return; var v = msg.value.content; return h('div', // h('img', { "src" : "http://localhost:7777/" + encodeURIComponent(v.cover) }), h('h1', v.Title), h("p", v.Description), h("dl", h("dt", "Creator"), h("dd", v.Creator), h("dt", "Identifier"), h("dd", v.Identifier), h("dt", "Published"), h("dd", v.Publicdate), h("dt", "Runtime"), h("dd", v.Runtime), h("dt", "Source"), h("dd", v.Source), h("dt", "License"), h("dd", h('a', { href : v.Licenseurl }, "Link")))) }