Display embed author/provider in admin if set

pull/226/head
Karl Hobley 2014-05-02 12:01:40 +01:00
rodzic db5559b688
commit a27bc5f237
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -28,4 +28,4 @@ def embed_to_editor_html(url):
if embed is None:
return
return '<div class="embed-placeholder" contenteditable="false" data-embedtype="media" data-url="%s"><h3>%s</h3><p>%s</p><img src="%s"></div>' % (url, escape(embed.title), url, embed.thumbnail_url)
return '<div class="embed-placeholder" contenteditable="false" data-embedtype="media" data-url="%s"><h3>%s</h3><p>%s<br/>%s<br/>%s</p><img src="%s"></div>' % (url, escape(embed.title), url, escape(embed.provider_name), escape(embed.author_name), embed.thumbnail_url)