Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix: Removed unnecessary template contents, to decrease unused content… #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog

Unreleased
==========
* fix: Removed unused contents within templates, reducing the clutter within version compare views.

* fix: Snippet plugin added to a page now displays name instead of ID
* fix: Slug field on list display for admin should only be displayed when versioning is not available
Expand Down
17 changes: 0 additions & 17 deletions djangocms_snippet/templates/djangocms_snippet/admin/preview.html
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
{% extends "admin/base_site.html" %}
{% load static %}
{{ snippet.html|safe|escape }}

{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}">
{% endblock %}

{% block coltype %}flex{% endblock %}

{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %}

{% block content %}
{% autoescape off %}
{{ snippet.html }}
{% endautoescape %}
{% endblock %}