def append(value):
if value:
output = '<a href="{href}" class="add-on" target="_blank"><i class="icon-globe"></i></a>'
href = force_str(value)
return format_html(output, href=smart_urlquote(href))
else:
output = '<span class="add-on"><i class="icon-globe"></i></span>'
return format_html(output)
评论列表
文章目录