<commit_before>{% extends "admin/base.html" %}
{% load mezzanine_tags i18n %}
{% comment %}

This file contains a handful of unrelated admin customizations that
mostly get applied globally to different parts of the admin.

In the ``extrahead`` block:

  * CSS for the login form
  * Javascript for the login form to add the ``interface`` radio buttons
  * Global CSS fixes (when logged in)
  * Javascript for injecting Mezzanine's menu into the top of every page
  * Javascript for fixing inlines to work with Mezzanine's dynamic inlines

In the ``footer`` block:

  * HTML for the ``interface`` radio buttons in the login form
  * HTML for Mezzanine's menu

{% endcomment %}

{% block title %}{{ title }} | Mezzanine{% endblock %}
{% block branding %}<h1 id="site-name">Mezzanine</h1>{% endblock %}
{% block nav-global %}{% endblock %}

{% block extrahead %}
<link rel="stylesheet" href="{{ STATIC_URL }}mezzanine/css/admin/global.css">
<style>
{# These are set in PageAdmin's view methods #}
{% if hide_delete_link %}.deletelink {display:none !important;}{% endif %}
{% if hide_slug_field %}.slug {display:none !important;}{% endif %}
{% if singleton %}
.change-view-save-another {display:none !important;}
{% endif %}
</style>
<script>
window.__csrf_token = '{{ csrf_token }}';
window.__admin_keywords_submit_url = '{% try_url "admin_keywords_submit" %}';
window.__filebrowser_url = '{% try_url "fb_browse" %}';
window.__admin_url = '{% try_url "admin:index" %}';
window.__admin_media_prefix__ = '{{ settings.ADMIN_MEDIA_PREFIX }}';
window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
</script>
{% if not settings.GRAPPELLI_INSTALLED %}
<script src="{{ STATIC_URL }}mezzanine/js/{{ settings.JQUERY_FILENAME }}"></script><commit_msg>Hide the delete button for mezzanine.core.admin.SingletonAdmin.<commit_after>{% extends "admin/base.html" %}
{% load mezzanine_tags i18n %}
{% comment %}

This file contains a handful of unrelated admin customizations that
mostly get applied globally to different parts of the admin.

In the ``extrahead`` block:

  * CSS for the login form
  * Javascript for the login form to add the ``interface`` radio buttons
  * Global CSS fixes (when logged in)
  * Javascript for injecting Mezzanine's menu into the top of every page
  * Javascript for fixing inlines to work with Mezzanine's dynamic inlines

In the ``footer`` block:

  * HTML for the ``interface`` radio buttons in the login form
  * HTML for Mezzanine's menu

{% endcomment %}

{% block title %}{{ title }} | Mezzanine{% endblock %}
{% block branding %}<h1 id="site-name">Mezzanine</h1>{% endblock %}
{% block nav-global %}{% endblock %}

{% block extrahead %}
<link rel="stylesheet" href="{{ STATIC_URL }}mezzanine/css/admin/global.css">
<style>
{#
These are set in PageAdmin's view methods, and
mezzanine.core.admin.SingletonAdmin
#}
{% if hide_delete_link or singleton %}
.deletelink {display:none !important;}
{% endif %}
{% if hide_slug_field %}
.slug {display:none !important;}
{% endif %}
{% if singleton %}
.change-view-save-another {display:none !important;}
{% endif %}
</style>
<script>
window.__csrf_token = '{{ csrf_token }}';
window.__admin_keywords_submit_url = '{% try_url "admin_keywords_submit" %}';
window.__filebrowser_url = '{% try_url "fb_browse" %}';
window.__admin_url = '{% try_url "admin:index" %}';
window.__admin_media_prefix__ = '{{ settings.ADMIN_MEDIA_PREFIX }}';
window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
</script>
{% if not settings.GRAPPELLI_INSTALLED %}
<script src="{{ STATIC_URL }}mezzanine/js/{{ settings.JQUERY_FILENAME }}"></script>
{'fraction_non_alphanumeric': 0.1453038674033149, 'fraction_numerical': 0.0022099447513812156, 'mean_word_length': 5.3637961335676625, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7549072', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1122, 'n_words': 340}