git ssb

16+

Dominic / patchbay



Commit b14b55a7a3856306e323ecdb3adc3afde89f3dab

add missing titles on some more pages

mixmix committed on 11/25/2018, 7:02:36 AM
Parent: b54dfb523349bba5720363e6c177039b9762ad5d

Files changed

app/page/profile.jschanged
app/page/search.jschanged
app/page/profile.jsView
@@ -56,18 +56,22 @@
5656 }]
5757
5858 pull(
5959 source({ query, live: true, old: false }),
60- Scroller(container, content, api.message.html.render, true, false)
60 + Scroller(container, content, render, true, false)
6161 )
6262
6363 // how to handle when have scrolled past the start???
6464
6565 pull(
6666 source({ query, reverse: true, limit: 50 }),
67- Scroller(container, content, api.message.html.render, false, false)
67 + Scroller(container, content, render, false, false)
6868 )
6969
7070 watch(api.about.obs.name(id), name => { container.title = '@' + name })
7171 return container
7272 }
73 +
74 + function render (msg) {
75 + return api.message.html.render(msg, { showTitle: true })
76 + }
7377 }
app/page/search.jsView
@@ -35,9 +35,9 @@
3535 const { filterMenu, filterDownThrough, resetFeed } = api.app.html.filter(draw)
3636 const { container, content } = api.app.html.scroller({ prepend: [searchHeader, filterMenu] })
3737
3838 function renderMsg (msg) {
39- var el = api.message.html.render(msg)
39 + var el = api.message.html.render(msg, { showTitle: true })
4040 var queryTerms = query.split(whitespace)
4141
4242 highlight(el, createOrRegExp(queryTerms))
4343 return el

Built with git-ssb-web