diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-29 10:45:10 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-29 10:48:34 -1000 |
commit | d916b2b55d7aa5492b505693ee3263e3b10395b8 (patch) | |
tree | 00b7413eb4663ef7a7cbf4c39a9e9d90a36b5667 /lib | |
parent | 63262287520bba7cc347f60145e66eb225e546aa (diff) | |
download | patchfoo-d916b2b55d7aa5492b505693ee3263e3b10395b8.tar.gz patchfoo-d916b2b55d7aa5492b505693ee3263e3b10395b8.zip |
Add form for searching text in a feed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js index 00c2968..31a07cf 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1075,6 +1075,16 @@ Serve.prototype.wrapUserFeed = function (isScrolled, id) { h('a', {href: render.toUrl('/contacts/' + id)}, 'contacts') ) ), + h('tr', + h('td'), + h('td', + h('form', {action: render.toUrl('/advsearch'), method: 'get'}, + h('input', {type: 'hidden', name: 'source', value: id}), + h('input', {type: 'text', name: 'text', placeholder: 'text'}), + h('input', {type: 'submit', value: 'search'}) + ) + ) + ), isScrolled ? '' : [ id === myId ? '' : h('tr', h('td'), |