aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-07-29 13:01:22 -0500
committerEv Bogue <ev@evbogue.com>2019-07-29 13:01:22 -0500
commit4ed0cd068bda4dd2241eb932735396ffd5e30e81 (patch)
treeee3921226c0e4aa60e783718901cdc9aa1b00edd
parent00ded79fa52434fddf007ac94aa0315b51bfee3c (diff)
add mentions button to profile pages
-rw-r--r--views.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/views.js b/views.js
index edb27dd..56a9735 100644
--- a/views.js
+++ b/views.js
@@ -48,8 +48,16 @@ function profilePage (src, keys) {
}
}, ['Identify ' + src.substring(0, 10) + '...'])
+ var mentionsButton = h('button', {
+ onclick: function () {
+ location.href = '#?' + src
+ }
+ }, ['Mentions'])
+
profile.appendChild(identifyButton)
+ profile.appendChild(mentionsButton)
+
localforage.getItem('subscriptions').then(function (subs) {
if (subs.includes(src)) {
profile.appendChild(h('button', {