mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 18:47:23 +08:00
FIX: Date format and styling for post notices
Follow-up to 35942f7.
This commit is contained in:
parent
ad12b2a23d
commit
ac8425ad30
@ -870,9 +870,9 @@ a.mention-group {
|
|||||||
border-top: 1px solid $primary-low;
|
border-top: 1px solid $primary-low;
|
||||||
color: $primary;
|
color: $primary;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin-bottom: 1em;
|
|
||||||
max-width: calc(
|
max-width: calc(
|
||||||
#{$topic-body-width} + #{$topic-avatar-width} - #{$topic-body-width-padding} + 3px
|
#{$topic-body-width} + #{$topic-avatar-width} - #{$topic-body-width-padding} +
|
||||||
|
3px
|
||||||
);
|
);
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
@ -475,3 +475,7 @@ span.highlighted {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-notice {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
@ -524,7 +524,7 @@ class PostCreator
|
|||||||
@post.custom_fields["post_notice_type"] = "first"
|
@post.custom_fields["post_notice_type"] = "first"
|
||||||
elsif SiteSetting.returning_users_days > 0 && last_post_time < SiteSetting.returning_users_days.days.ago
|
elsif SiteSetting.returning_users_days > 0 && last_post_time < SiteSetting.returning_users_days.days.ago
|
||||||
@post.custom_fields["post_notice_type"] = "returning"
|
@post.custom_fields["post_notice_type"] = "returning"
|
||||||
@post.custom_fields["post_notice_time"] = last_post_time
|
@post.custom_fields["post_notice_time"] = last_post_time.iso8601
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user