diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-18 19:55:16 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-18 19:58:49 -0700 |
commit | 9b2d69c5a6b691f6bdec12b08089ef104b889a50 (patch) | |
tree | 102bdb503b63f28f9d2f47c5a891d140af391834 /lib | |
parent | cc6080bfb402cf088b8a548821a2d1992b637f45 (diff) | |
download | patchfoo-9b2d69c5a6b691f6bdec12b08089ef104b889a50.tar.gz patchfoo-9b2d69c5a6b691f6bdec12b08089ef104b889a50.zip |
List channels inline
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 15 |
1 files 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(), |