Highlight original poster in forum topic
parent
3da1b45c89
commit
4c01fc3a4f
|
@ -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 =>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue