Commit a33e94e7ad223afbbc7e71c3d98503d161cc576e
display public key clearly on user's profile
fixes #461Matt McKegg committed on 10/14/2017, 5:23:30 AM
Parent: 39e2313627e48eb9e37b220156a07c43f51d7adc
Files changed
locales/en.json | changed |
modules/page/html/render/profile.js | changed |
styles/dark/profile-header.mcss | changed |
styles/light/profile-header.mcss | changed |
locales/en.json | ||
---|---|---|
@@ -147,6 +147,7 @@ | ||
147 | 147 | "Blocked": "Blocked", |
148 | 148 | "pt": "pt", |
149 | 149 | "blocked ": "blocked ", |
150 | 150 | "unblocked ": "unblocked ", |
151 | - "Click to block syncing with this person and hide their posts": "Click to block syncing with this person and hide their posts" | |
152 | -} | |
151 | + "Click to block syncing with this person and hide their posts": "Click to block syncing with this person and hide their posts", | |
152 | + "Public key for this profile": "Public key for this profile" | |
153 | +} |
modules/page/html/render/profile.js | ||
---|---|---|
@@ -178,8 +178,11 @@ | ||
178 | 178 | ]) |
179 | 179 | ]) |
180 | 180 | ]) |
181 | 181 | ]), |
182 | + h('section -publicKey', [ | |
183 | + h('pre', {title: i18n('Public key for this profile')}, id) | |
184 | + ]), | |
182 | 185 | h('section -description', [ |
183 | 186 | computed(description, (text) => { |
184 | 187 | if (typeof text === 'string') { |
185 | 188 | return api.message.html.markdown(text) |
styles/dark/profile-header.mcss | ||
---|---|---|
@@ -29,7 +29,20 @@ | ||
29 | 29 | max-height: 350px |
30 | 30 | overflow: auto |
31 | 31 | -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0)); |
32 | 32 | } |
33 | + -publicKey { | |
34 | + pre { | |
35 | + color: #808080; | |
36 | + margin: 2px 0; | |
37 | + font-size: 120%; | |
38 | + background: #333333; | |
39 | + padding: 3px; | |
40 | + ::selection { | |
41 | + background: black | |
42 | + color: white | |
43 | + } | |
44 | + } | |
45 | + } | |
33 | 46 | } |
34 | 47 | } |
35 | 48 | } |
styles/light/profile-header.mcss | ||
---|---|---|
@@ -36,7 +36,16 @@ | ||
36 | 36 | max-height: 350px |
37 | 37 | overflow: auto |
38 | 38 | -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0)); |
39 | 39 | } |
40 | + -publicKey { | |
41 | + pre { | |
42 | + color: #b3b3b3; | |
43 | + margin: 2px 0; | |
44 | + font-size: 120%; | |
45 | + background: #ffffff; | |
46 | + padding: 3px; | |
47 | + } | |
48 | + } | |
40 | 49 | } |
41 | 50 | } |
42 | 51 | } |
Built with git-ssb-web