Commit a152041e by Tom Giannattasio

fixed inline thread replace error

parent 85abb713
...@@ -125,7 +125,8 @@ class @DiscussionThreadShowView extends DiscussionContentView ...@@ -125,7 +125,8 @@ class @DiscussionThreadShowView extends DiscussionContentView
@model.set('endorsed', not endorsed) @model.set('endorsed', not endorsed)
highlight: (el) -> highlight: (el) ->
el.html(el.html().replace(/&lt;mark&gt;/g, "<mark>").replace(/&lt;\/mark&gt;/g, "</mark>")) if el.html()
el.html(el.html().replace(/&lt;mark&gt;/g, "<mark>").replace(/&lt;\/mark&gt;/g, "</mark>"))
class @DiscussionThreadInlineShowView extends DiscussionThreadShowView class @DiscussionThreadInlineShowView extends DiscussionThreadShowView
renderTemplate: -> renderTemplate: ->
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<h3>{{title}}</h3> <h3>{{title}}</h3>
<p class="posted-details"> <p class="posted-details">
{{#user}} {{#user}}
<a href="{{user_url}}" class="username">{{username}}</a> <a href="{{user_url}}" class="username">{{username}}</a>
{{/user}} {{/user}}
{{^user}} {{^user}}
anonymous anonymous
{{/user}} {{/user}}
<span class="timeago" title="{{created_at}}">{{created_at}}</span> <span class="timeago" title="{{created_at}}">{{created_at}}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment