Commit 1ede2843 by Tom Giannattasio

added conditional to render tags wrapper only if there are tags

parent 0b650fc7
...@@ -34,8 +34,10 @@ if Backbone? ...@@ -34,8 +34,10 @@ if Backbone?
@responsesRequest.abort() @responsesRequest.abort()
renderTags: -> renderTags: ->
tags = $('<div class="thread-tags">') tags
for tag in @model.get("tags") for tag in @model.get("tags")
if !tags
tags = $('<div class="thread-tags">')
tags.append("<a class='thread-tag'>#{tag}</a>") tags.append("<a class='thread-tag'>#{tag}</a>")
@$(".post-body").after(tags) @$(".post-body").after(tags)
......
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