fix main post links
This commit is contained in:
parent
4c03933318
commit
c9b2d1b3a7
|
@ -675,6 +675,9 @@ footer a {
|
|||
#post .info .links a {
|
||||
font-size: var(--sm-font);
|
||||
}
|
||||
#post .info .links a {
|
||||
float: initial;
|
||||
}
|
||||
#post header {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
@ -713,6 +716,9 @@ footer a {
|
|||
font-size: small;
|
||||
color: #686868;
|
||||
}
|
||||
#post .submitted a {
|
||||
float: initial;
|
||||
}
|
||||
#post .submitted a,
|
||||
#post .submitted span {
|
||||
margin-left: 5px;
|
||||
|
|
|
@ -34,28 +34,28 @@ html
|
|||
h2 #{cleanTitle(post.title)}
|
||||
!= post.link_flair
|
||||
span(class="domain") (#{post.domain})
|
||||
p.submitted
|
||||
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
|
||||
if post.author === '[deleted]'
|
||||
span [deleted]
|
||||
else
|
||||
a(href="/u/" + post.author + "")
|
||||
| #{post.author}
|
||||
!= post.user_flair
|
||||
.links
|
||||
if post.over_18
|
||||
span.tag.nsfw NSFW
|
||||
-
|
||||
let back_url = "/r/" + subreddit + "/comments/" + post.id
|
||||
let saved_post = false
|
||||
if user_preferences.saved
|
||||
each post_id in user_preferences.saved
|
||||
if post_id === post.id
|
||||
- saved_post = true
|
||||
if saved_post
|
||||
a(href="/unsave/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave
|
||||
else
|
||||
a(href="/save/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") save
|
||||
p.submitted
|
||||
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
|
||||
if post.author === '[deleted]'
|
||||
span [deleted]
|
||||
else
|
||||
a(href="/u/" + post.author + "")
|
||||
| #{post.author}
|
||||
!= post.user_flair
|
||||
.links
|
||||
if post.over_18
|
||||
span.tag.nsfw NSFW
|
||||
-
|
||||
let back_url = "/r/" + subreddit + "/comments/" + post.id
|
||||
let saved_post = false
|
||||
if user_preferences.saved
|
||||
each post_id in user_preferences.saved
|
||||
if post_id === post.id
|
||||
- saved_post = true
|
||||
if saved_post
|
||||
a(href="/unsave/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave
|
||||
else
|
||||
a(href="/save/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") save
|
||||
if post.crosspost.is_crosspost === true
|
||||
.crosspost
|
||||
.title
|
||||
|
|
Loading…
Reference in New Issue