From 9b2d69c5a6b691f6bdec12b08089ef104b889a50 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 18 Apr 2017 19:55:16 -0700 Subject: List channels inline --- lib/serve.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index e7d1695..754a67e 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -409,17 +409,10 @@ Serve.prototype.channels = function (ext) { self.app.streamChannels(), paramap(function (channel, cb) { var subscribed = false - cb(null, h('form', {method: 'post', action: ''}, - h('a', {href: self.app.render.toUrl('#' + channel)}, '#' + channel) - /* - ' ', - h('input', {type: 'hidden', name: 'action', value: 'channel'}), - h('input', {type: 'hidden', name: 'channel', value: channel}), - h('input', {type: 'hidden', name: 'subscribed', value: !subscribed}), - h('input', {type: 'submit', value: subscribed - ? 'unsubscribe' : 'subscribe'}) - */ - )) + cb(null, [ + h('a', {href: self.app.render.toUrl('#' + channel)}, '#' + channel), + ' ' + ]) }, 8), pull.map(u.toHTML), self.wrapChannels(), -- cgit v1.2.3