Added preview template

This commit is contained in:
Mark Riedesel 2013-10-16 18:13:21 -05:00
parent 0aed8549f7
commit 1a702665fd
3 changed files with 24 additions and 3 deletions

View file

@ -0,0 +1,8 @@
{% extends 'admin/change_form.html' %}
{% load i18n admin_static admin_modify %}
{% load admin_urls %}
{% block object-tools-items %}
<li><a href="{% url 'admin:preview' original.pk|admin_urlquote %}">Preview</a></li>
{{ block.super }}
{% endblock %}

View file

@ -0,0 +1,7 @@
{% extends "admin/base_site.html" %}
{% block content %}
<div id="content-main">
<img src="{{ page.image.url }}"/>
</div>
{% endblock %}