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/
tmp/
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;
}
.message > footer {
display: flex;
justify-content: space-between;
}
.message > footer > * {
margin-right: 1rem;
text-decoration: none;
}

View File

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