Commit 5751bfc7a66e62b9d47d5cc86f6a753fae3f41a0
remove @ prefix from display names
closes #442Matt McKegg committed on 3/18/2017, 5:30:34 AM
Parent: 96d1acae643d0029206782d6ff84b09f12b59a2c
Files changed
modules/page/html/render/profile.js | changed |
modules/page/html/render/public.js | changed |
modules/profile/html/person.js | changed |
plugs/message/html/render/about.js | changed |
modules/page/html/render/profile.js | ||
---|---|---|
@@ -134,9 +134,9 @@ | ||
134 | 134 … | var prepend = h('header', {className: 'ProfileHeader'}, [ |
135 | 135 … | h('div.image', api.about.html.image(id)), |
136 | 136 … | h('div.main', [ |
137 | 137 … | h('div.title', [ |
138 | - h('h1', ['@', name]), | |
138 … | + h('h1', [name]), | |
139 | 139 … | h('div.meta', [ |
140 | 140 … | when(id === yourId, [ |
141 | 141 … | h('button', {'ev-click': api.profile.sheet.edit}, 'Edit Your Profile') |
142 | 142 … | ], [ |
@@ -202,9 +202,9 @@ | ||
202 | 202 … | href: id |
203 | 203 … | }, [ |
204 | 204 … | h('div.avatar', [api.about.html.image(id)]), |
205 | 205 … | h('div.main', [ |
206 | - h('div.name', [ '@', api.about.obs.name(id) ]) | |
206 … | + h('div.name', [ api.about.obs.name(id) ]) | |
207 | 207 … | ]) |
208 | 208 … | ]) |
209 | 209 … | }, { |
210 | 210 … | idle: true |
@@ -266,9 +266,9 @@ | ||
266 | 266 … | h('h2', { |
267 | 267 … | style: { |
268 | 268 … | 'font-weight': 'normal' |
269 | 269 … | } |
270 | - }, ['What whould you like to call ', h('strong', ['@', currentName]), '?']), | |
270 … | + }, ['What whould you like to call ', h('strong', [currentName]), '?']), | |
271 | 271 … | input |
272 | 272 … | ]), |
273 | 273 … | footer: [ |
274 | 274 … | h('button -save', { |
modules/page/html/render/public.js | ||
---|---|---|
@@ -158,9 +158,9 @@ | ||
158 | 158 … | href: id |
159 | 159 … | }, [ |
160 | 160 … | h('div.avatar', [api.about.html.image(id)]), |
161 | 161 … | h('div.main', [ |
162 | - h('div.name', [ '@', api.about.obs.name(id) ]) | |
162 … | + h('div.name', [ api.about.obs.name(id) ]) | |
163 | 163 … | ]) |
164 | 164 … | ]) |
165 | 165 … | }) |
166 | 166 … | ]) |
modules/profile/html/person.js | ||
---|---|---|
@@ -14,9 +14,9 @@ | ||
14 | 14 … | 'profile.html': {person} |
15 | 15 … | }) |
16 | 16 … | |
17 | 17 … | function person (id) { |
18 | - return h('a', {classList: 'ProfileLink', href: id}, [ | |
19 | - '@', api.about.obs.name(id) | |
18 … | + return h('a ProfileLink', {href: id, title: id}, [ | |
19 … | + api.about.obs.name(id) | |
20 | 20 … | ]) |
21 | 21 … | } |
22 | 22 … | } |
plugs/message/html/render/about.js | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 … | var self = msg.value.author === c.about |
28 | 28 … | var content = [] |
29 | 29 … | |
30 | 30 … | if (c.name) { |
31 | - var target = api.about.html.link(c.about, `@${c.name}`) | |
31 … | + var target = api.about.html.link(c.about, c.name) | |
32 | 32 … | content.push(computed([self, api.about.obs.name(c.about), c.name], (self, a, b) => { |
33 | 33 … | if (self) { |
34 | 34 … | return ['self identifies as ', target] |
35 | 35 … | } else if (a === b) { |
Built with git-ssb-web