Add links to reply and reply all pages

This commit is contained in:
Christian Bundy 2019-08-06 19:44:09 -07:00
parent a5dbc26d04
commit b8384eea68
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
4 changed files with 27 additions and 11451 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ coverage/
dist/ dist/
tmp/ tmp/
npm-debug.log* npm-debug.log*
.DS_Store package-lock.json
.DS_Store

11433
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -137,8 +137,12 @@ pre {
pointer-events: none; pointer-events: none;
} }
.message > footer {
display: flex;
justify-content: space-between;
}
.message > footer > * { .message > footer > * {
margin-right: 1rem;
text-decoration: none; text-decoration: none;
} }

View File

@ -28,7 +28,9 @@ module.exports = ({ msg }) => {
context: `/thread/${encoded.key}#${encoded.key}`, context: `/thread/${encoded.key}#${encoded.key}`,
parent: `/thread/${encoded.parent}#${encoded.parent}`, parent: `/thread/${encoded.parent}#${encoded.parent}`,
avatar: msg.value.meta.author.avatar.url, avatar: msg.value.meta.author.avatar.url,
raw: `/raw/${encoded.key}` raw: `/raw/${encoded.key}`,
reply: `/reply/${encoded.key}`,
replyAll: `/reply-all/${encoded.key}`
} }
const isPrivate = Boolean(msg.value.meta.private) const isPrivate = Boolean(msg.value.meta.private)
@ -92,21 +94,23 @@ module.exports = ({ msg }) => {
// where it was before they clicked the button. // where it was before they clicked the button.
div({ id: `centered-footer-${encoded.key}`, class: 'centered-footer' }), div({ id: `centered-footer-${encoded.key}`, class: 'centered-footer' }),
footer( footer(
form({ action: url.likeForm, method: 'post' }, form({ action: url.likeForm, method: 'post' },
button({ button({
name: 'voteValue', name: 'voteValue',
type: 'submit', type: 'submit',
value: likeButton.value, value: likeButton.value,
class: likeButton.class class: likeButton.class
}, },
`${likeCount}` `${likeCount}`
) )
), ),
a({ href: url.context }, 'context'), a({ href: url.reply }, 'reply'),
parentLink, a({ href: url.replyAll }, 'reply all'),
a({ href: url.raw }, 'raw') a({ href: url.context }, 'context'),
) parentLink,
a({ href: url.raw }, 'raw')
)
) )
return fragment return fragment