Commit 6e217b31 by Tom Giannattasio

added conditional to render tags wrapper only if there are tags

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