added conditional to render tags wrapper only if there are tags
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user