-
${content['body'] | h}
+ % if content.get('highlighted_body', None):
+
${content['highlighted_body'] | h}
+ % else:
+
${content['body'] | h}
+ % endif
${content['body'] | h}
${render_tags(content, type, **kwargs)}
${render_bottom_bar(content, type, **kwargs)}
@@ -54,7 +58,11 @@
<%def name="render_title(content, type, **kwargs)">
% if type == "thread":
-
${content['title'] | h}
+ % if content.get('highlighted_title', None):
+
${content['highlighted_title'] | h}
+ % else:
+
${content['title'] | h}
+ % endif
% endif
%def>
@@ -102,15 +110,19 @@
%def>
<%def name="render_info(content)">
- ${time_ago_in_words(parse(content['updated_at']))} ago by
- % if content['anonymous']:
- anonymous
- % else:
- user No.${content['user_id']}
- % endif
- % if content.get('comments_count', -1) >= 0:
- ,
- % endif
+
+
%def>
<%def name="render_link(cls, html)">
diff --git a/lms/templates/discussion/thread.html b/lms/templates/discussion/thread.html
index 08b61fbbcc..beee18a4ca 100644
--- a/lms/templates/discussion/thread.html
+++ b/lms/templates/discussion/thread.html
@@ -79,15 +79,19 @@
%def>
<%def name="render_info(content)">
- ${time_ago_in_words(parse(content['updated_at']))} ago by
- % if content['anonymous']:
- anonymous
- % else:
- user No.${content['user_id']}
- % endif
- % if content.get('comments_count', -1) >= 0:
- , ${content['comments_count']} comment(s)
- % endif
+
+
%def>
<%def name="render_link(cls, html)">