-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends "wagtailcore/shared/block_preview.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<img class="static-block-preview" src="{% static "img/embed-block-preview.png" %}" alt="Preview of an embedded video" /> | ||
{% endblock %} |
21 changes: 21 additions & 0 deletions
21
bakerydemo/templates/wagtailcore/shared/block_preview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends "wagtailcore/shared/block_preview.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
{# Add a wrapper so we can add padding with our own CSS class #} | ||
<div class="block-preview"> | ||
{{ block.super }} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block css %} | ||
{{ block.super }} | ||
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"> | ||
<link rel="stylesheet" href="{% static 'css/font-marcellus.css' %}"> | ||
<link rel="stylesheet" href="{% static 'css/main.css' %}"> | ||
{% endblock %} | ||
|
||
{% block js %} | ||
{# None of our blocks need JavaScript at the moment. #} | ||
{{ block.super }} | ||
{% endblock %} |