Highlight original poster in forum topic

pull/9873/head
romnzs 2021-09-23 22:55:32 +03:00
parent 3da1b45c89
commit 4c01fc3a4f
2 changed files with 11 additions and 1 deletions

View File

@ -44,7 +44,10 @@ object post {
st.article(cls := List("forum-post" -> true, "erased" -> post.erased), id := post.number)(
div(cls := "forum-post__metas")(
(!post.erased || canModCateg) option div(
authorLink(post = post, cssClass = "author".some),
authorLink(
post = post,
cssClass = s"author${if (topic.userId == post.userId) " author__op" else ""}".some
),
a(href := url)(
post.updatedAt
.map { updatedAt =>

View File

@ -17,6 +17,13 @@
margin-right: 1rem;
}
a.author__op {
padding: 0.2em;
padding-right: 1em;
border-radius: 0.3em;
background: mix($c-primary, $c-bg-box, 12%);
}
.anchor {
@extend %break-nope;