aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-18 19:55:16 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-18 19:58:49 -0700
commit9b2d69c5a6b691f6bdec12b08089ef104b889a50 (patch)
tree102bdb503b63f28f9d2f47c5a891d140af391834 /lib
parentcc6080bfb402cf088b8a548821a2d1992b637f45 (diff)
downloadpatchfoo-9b2d69c5a6b691f6bdec12b08089ef104b889a50.tar.gz
patchfoo-9b2d69c5a6b691f6bdec12b08089ef104b889a50.zip
List channels inline
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js15
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(),