Skip to content

Commit

Permalink
add favicons to preview and embed views
Browse files Browse the repository at this point in the history
see #527
  • Loading branch information
christianp committed Aug 18, 2020
1 parent 0a426ef commit 07eb825
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/templates/editoritem/embed.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{% load sstatic %}
<!doctype html>
<html>
<head>
<title>{{item.name}}</title>

<link rel="icon" href="{% sstatic 'icon.png' %}"/>
</head>
<body style="margin: 0; overflow: hidden;">
<iframe src="{{exam_url}}" style="width: 100vw;height:100vh; border: none;"></iframe>
Expand Down
2 changes: 2 additions & 0 deletions editor/templates/editoritem/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<head>
<title>{{item.name}} - preview - {{SITE_TITLE}}</title>

<link rel="icon" href="{% sstatic 'icon.png' %}"/>

{% if item.published %}
{% include 'editoritem/oembed.html' %}
{% endif %}
Expand Down

0 comments on commit 07eb825

Please sign in to comment.