Commit b14b55a7a3856306e323ecdb3adc3afde89f3dab
add missing titles on some more pages
mixmix committed on 11/25/2018, 7:02:36 AMParent: b54dfb523349bba5720363e6c177039b9762ad5d
Files changed
app/page/profile.js | changed |
app/page/search.js | changed |
app/page/profile.js | ||
---|---|---|
@@ -56,18 +56,22 @@ | ||
56 | 56 … | }] |
57 | 57 … | |
58 | 58 … | pull( |
59 | 59 … | source({ query, live: true, old: false }), |
60 | - Scroller(container, content, api.message.html.render, true, false) | |
60 … | + Scroller(container, content, render, true, false) | |
61 | 61 … | ) |
62 | 62 … | |
63 | 63 … | // how to handle when have scrolled past the start??? |
64 | 64 … | |
65 | 65 … | pull( |
66 | 66 … | source({ query, reverse: true, limit: 50 }), |
67 | - Scroller(container, content, api.message.html.render, false, false) | |
67 … | + Scroller(container, content, render, false, false) | |
68 | 68 … | ) |
69 | 69 … | |
70 | 70 … | watch(api.about.obs.name(id), name => { container.title = '@' + name }) |
71 | 71 … | return container |
72 | 72 … | } |
73 … | + | |
74 … | + function render (msg) { | |
75 … | + return api.message.html.render(msg, { showTitle: true }) | |
76 … | + } | |
73 | 77 … | } |
app/page/search.js | ||
---|---|---|
@@ -35,9 +35,9 @@ | ||
35 | 35 … | const { filterMenu, filterDownThrough, resetFeed } = api.app.html.filter(draw) |
36 | 36 … | const { container, content } = api.app.html.scroller({ prepend: [searchHeader, filterMenu] }) |
37 | 37 … | |
38 | 38 … | function renderMsg (msg) { |
39 | - var el = api.message.html.render(msg) | |
39 … | + var el = api.message.html.render(msg, { showTitle: true }) | |
40 | 40 … | var queryTerms = query.split(whitespace) |
41 | 41 … | |
42 | 42 … | highlight(el, createOrRegExp(queryTerms)) |
43 | 43 … | return el |
Built with git-ssb-web