Add links to reply and reply all pages
This commit is contained in:
parent
a5dbc26d04
commit
b8384eea68
|
@ -4,4 +4,5 @@ coverage/
|
||||||
dist/
|
dist/
|
||||||
tmp/
|
tmp/
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
.DS_Store
|
package-lock.json
|
||||||
|
.DS_Store
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue