Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
58beb551
Commit
58beb551
authored
Jun 10, 2017
by
Skia
🤘
Browse files
Fix unread messages in topic
Signed-off-by:
Skia
<
skia@libskia.so
>
parent
ca047d96
Pipeline
#1051
passed with stage
in 4 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/static/core/style.scss
View file @
58beb551
...
...
@@ -584,7 +584,7 @@ textarea {
font-size
:
100%
;
}
&
.unread
{
background
:
#d8e7f3
;
background
:
$secondary-neutral-light-color
;
}
}
...
...
forum/views.py
View file @
58beb551
...
...
@@ -182,7 +182,7 @@ class ForumTopicDetailView(CanViewMixin, DetailView):
def
get_context_data
(
self
,
**
kwargs
):
kwargs
=
super
(
ForumTopicDetailView
,
self
).
get_context_data
(
**
kwargs
)
try
:
msg
=
self
.
object
.
get_first_unread_message
(
user
)
msg
=
self
.
object
.
get_first_unread_message
(
self
.
request
.
user
)
kwargs
[
'first_unread_message_id'
]
=
msg
.
id
except
:
kwargs
[
'first_unread_message_id'
]
=
float
(
"inf"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment