Commit fe2173f46498c968ad5bd79d249d023ca4998f88
message layout: move backlinks to below actions
Matt McKegg committed on 4/8/2017, 3:10:23 AMParent: d3ad4af2e605d2690d1e5fcfb6982c41857d1d7f
Files changed
plugs/message/html/layout/default.js | changed |
plugs/message/html/layout/default.js | ||
---|---|---|
@@ -43,24 +43,24 @@ | ||
43 | 43 | classList |
44 | 44 | }, [ |
45 | 45 | messageHeader(msg, replyInfo), |
46 | 46 | h('section', [opts.content]), |
47 | - map(backlinks, backlink => { | |
48 | - return h('a.backlink', { | |
49 | - href: backlink, | |
50 | - title: backlink | |
51 | - }, [ | |
52 | - h('strong', 'Referenced from'), ' ', api.message.obs.name(backlink) | |
53 | - ]) | |
54 | - }), | |
55 | 47 | computed(msg.key, (key) => { |
56 | 48 | if (ref.isMsg(key)) { |
57 | 49 | return h('footer', [ |
58 | 50 | h('div.actions', [ |
59 | 51 | api.message.html.action(msg) |
60 | 52 | ]) |
61 | 53 | ]) |
62 | 54 | } |
55 | + }), | |
56 | + map(backlinks, backlink => { | |
57 | + return h('a.backlink', { | |
58 | + href: backlink, | |
59 | + title: backlink | |
60 | + }, [ | |
61 | + h('strong', 'Referenced from'), ' ', api.message.obs.name(backlink) | |
62 | + ]) | |
63 | 63 | }) |
64 | 64 | ]) |
65 | 65 | |
66 | 66 | // scoped |
Built with git-ssb-web