Commit 2f08a973278af539f75b3b3768653ce18f35cecd
add quick link to your profile in header (TEMP)
mix irving committed on 8/25/2017, 10:18:42 PMParent: dda4e76777af86ce15043c624df15895344368da
Files changed
app/html/header.js | changed |
app/html/header.js | ||
---|---|---|
@@ -2,8 +2,10 @@ | ||
2 | 2 | const { h, computed } = require('mutant') |
3 | 3 | |
4 | 4 | exports.gives = nest('app.html.header') |
5 | 5 | |
6 | +exports.needs = nest('keys.sync.id', 'first') | |
7 | + | |
6 | 8 | exports.create = (api) => { |
7 | 9 | return nest('app.html.header', (nav) => { |
8 | 10 | return h('Header', [ |
9 | 11 | h('nav', [ |
@@ -14,8 +16,9 @@ | ||
14 | 16 | // breadcrumb here potentially |
15 | 17 | // h('h1', computed(nav.location, e => e.element.title)), |
16 | 18 | |
17 | 19 | h('div.tools', [ |
20 | + h('i.fa.fa-user', { 'ev-click': () => nav.push({page:'userEdit', feed: api.keys.sync.id()}) }), // TEMP | |
18 | 21 | h('i.fa.fa-address-book', { 'ev-click': () => nav.push({page:'userFind'}) }), |
19 | 22 | h('i.fa.fa-hashtag', { 'ev-click': () => nav.push({page:'groupFind'}) }), |
20 | 23 | h('i.fa.fa-gear', { 'ev-click': () => nav.push({page:'settings'}) }) |
21 | 24 | ]) |
Built with git-ssb-web