"
@$meta
.append(@$meta_subscription_icon)
.append(@$meta_subscription_title)
.append(@$meta_published_at)
@$el.append(@$meta)
@$meta_subscription_icon.attr 'src', subscription_icon_url
@$meta_subscription_title.html(subscription_title)
@$meta_published_at.html(published_at)
if subscription_icon_url == ''
@$meta_subscription_icon.hide()
else
@$meta_subscription_icon.show()
_render_image: (image_url) ->
if ! @$image
@$image =$ "
"
@$el.append(@$image)
@$image.attr('src', image_url)
_render_title: (title) ->
if ! @$title
@$title =$ "
"
@$el.append(@$title)
@$title.html(title)
_render_summary: (summary) ->
if summary == ''
@$summary?.remove()
else
if ! @$summary
@$summary =$ "
"
@$el.append(@$summary)
@$summary.html(summary)
# PUBLIC ================================================
render: ->
image_url = @object['_list_item_thumbnail'].plainText()
title = @object['_list_item_title'].plainText()
subscription_icon_url = @object['subscription_icon_url'].plainText()
subscription_title = @object['subscription_title'].plainText()
published_at = @object['_list_item_subtitle'].plainText()
summary = @object['summary'].plainText()
@_render_meta(subscription_title, subscription_icon_url, published_at)
# if image_url != ''
# @_render_image(image_url)
@_render_title(title)
@_render_summary(summary)