git ssb

10+

Matt McKegg / patchwork



Commit 5751bfc7a66e62b9d47d5cc86f6a753fae3f41a0

remove @ prefix from display names

closes #442
Matt McKegg committed on 3/18/2017, 5:30:34 AM
Parent: 96d1acae643d0029206782d6ff84b09f12b59a2c

Files changed

modules/page/html/render/profile.jschanged
modules/page/html/render/public.jschanged
modules/profile/html/person.jschanged
plugs/message/html/render/about.jschanged
modules/page/html/render/profile.jsView
@@ -134,9 +134,9 @@
134134 var prepend = h('header', {className: 'ProfileHeader'}, [
135135 h('div.image', api.about.html.image(id)),
136136 h('div.main', [
137137 h('div.title', [
138- h('h1', ['@', name]),
138 + h('h1', [name]),
139139 h('div.meta', [
140140 when(id === yourId, [
141141 h('button', {'ev-click': api.profile.sheet.edit}, 'Edit Your Profile')
142142 ], [
@@ -202,9 +202,9 @@
202202 href: id
203203 }, [
204204 h('div.avatar', [api.about.html.image(id)]),
205205 h('div.main', [
206- h('div.name', [ '@', api.about.obs.name(id) ])
206 + h('div.name', [ api.about.obs.name(id) ])
207207 ])
208208 ])
209209 }, {
210210 idle: true
@@ -266,9 +266,9 @@
266266 h('h2', {
267267 style: {
268268 'font-weight': 'normal'
269269 }
270- }, ['What whould you like to call ', h('strong', ['@', currentName]), '?']),
270 + }, ['What whould you like to call ', h('strong', [currentName]), '?']),
271271 input
272272 ]),
273273 footer: [
274274 h('button -save', {
modules/page/html/render/public.jsView
@@ -158,9 +158,9 @@
158158 href: id
159159 }, [
160160 h('div.avatar', [api.about.html.image(id)]),
161161 h('div.main', [
162- h('div.name', [ '@', api.about.obs.name(id) ])
162 + h('div.name', [ api.about.obs.name(id) ])
163163 ])
164164 ])
165165 })
166166 ])
modules/profile/html/person.jsView
@@ -14,9 +14,9 @@
1414 'profile.html': {person}
1515 })
1616
1717 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)
2020 ])
2121 }
2222 }
plugs/message/html/render/about.jsView
@@ -27,9 +27,9 @@
2727 var self = msg.value.author === c.about
2828 var content = []
2929
3030 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)
3232 content.push(computed([self, api.about.obs.name(c.about), c.name], (self, a, b) => {
3333 if (self) {
3434 return ['self identifies as ', target]
3535 } else if (a === b) {

Built with git-ssb-web