Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
afdd1134
Commit
afdd1134
authored
Sep 20, 2012
by
Ibrahim Awwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show total comments instead of unread only, and use a tooltip to show the unread count.
parent
55a9da93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/templates/discussion/_underscore_templates.html
+3
-3
No files found.
lms/templates/discussion/_underscore_templates.html
View file @
afdd1134
...
...
@@ -119,7 +119,7 @@
<script
type=
"text/template"
id=
"response-comment-show-template"
>
<
div
id
=
"comment_${'<%- id %>'}"
>
<
div
class
=
"response-body"
>
$
{
'<%- body %>'
}
<
/div
>
<
p
class
=
"posted-details"
>&
ndash
;
posted
<
span
class
=
"timeago"
title
=
"${'<%- created_at %>'}"
>
$
{
'<%- created_at %>'
}
<
/span> by
<
p
class
=
"posted-details"
>&
ndash
;
posted
<
span
class
=
"timeago"
title
=
"${'<%- created_at %>'}"
>
$
{
'<%- created_at %>'
}
<
/span> b
y
$
{
"<% if (obj.username) { %>"
}
<
a
href
=
"${'<%- user_url %>'}"
class
=
"profile-link"
>
$
{
'<%- username %>'
}
<
/a
>
$
{
"<% } else {print('anonymous');} %>"
}
...
...
@@ -129,9 +129,9 @@
<script
type=
"text/template"
id=
"thread-list-item-template"
>
<
a
href
=
"${'<%- id %>'}"
data
-
id
=
"${'<%- id %>'}"
>
<
span
class
=
"title"
>
$
{
"<%- title %>"
}
<
/span>
<
span
class
=
"title"
>
$
{
"<%- title %>"
}
<
/span
>
$
{
"<% if (unread_comments_count > 0) { %>"
}
<
span
class
=
"comments-count unread"
>
$
{
"<%- unread_
comments_count %>"
}
<
/span
>
<
span
class
=
"comments-count unread"
data
-
tooltip
=
"${"
<%-
unread_comments_count
%>
"} unread comments"
>
$
{
"<%-
comments_count %>"
}
<
/span
>
$
{
"<% } else { %>"
}
<
span
class
=
"comments-count"
>
$
{
"<%- comments_count %>"
}
<
/span
>
$
{
"<% } %>"
}
...
...
Write
Preview
Markdown
is supported
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