From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- .../admin/_grappelli_admin_tools/app_index.html | 20 ++++ .../admin/_grappelli_admin_tools/base.html | 125 +++++++++++++++++++++ .../admin/_grappelli_admin_tools/base_site.html | 25 +++++ .../admin/_grappelli_admin_tools/index.html | 18 +++ 4 files changed, 188 insertions(+) create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html (limited to 'app/lib/grappelli/templates/admin/_grappelli_admin_tools') diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html new file mode 100644 index 0000000..bc896be --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html @@ -0,0 +1,20 @@ +{% extends "admin/_grappelli_admin_tools/index.html" %} +{% load i18n admin_tools_dashboard_tags %} + + +{% if not is_popup %} + {% block breadcrumbs %} + + {% endblock %} +{% endif %} + +{% block content %} + {% admin_tools_render_dashboard 'app_index' %} +{% endblock %} + +{% block sidebar %}{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html new file mode 100644 index 0000000..742273a --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html @@ -0,0 +1,125 @@ + + + + {% block title %}{% endblock %} + {% block blockbots %}{% endblock %} + + + {% load theming_tags adminmedia i18n grp_tags %} + + + {% block stylesheets %} + + {% if LANGUAGE_BIDI %}{% endif %} + + + {% endblock %} + + {% block extrastyle %}{% endblock %} + + + {% block javascripts %} + + + + + + + + {% endblock %} + + {% block extrahead %}{% endblock %} + + +
+ + + {% if not is_popup %} + + + + {% block breadcrumbs %} + + {% endblock %} + {% endif %} + + + {% if messages %} + + {% endif %} + + +
+ {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + {% block object-tools %}{% endblock %} + {% block content %} + {{ content }} + {% block filters %}{% endblock %} + {% endblock %} +
+
+ + + {% block footer %}{% endblock %} + +
+ + + diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html new file mode 100644 index 0000000..0012bb6 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html @@ -0,0 +1,25 @@ +{% extends "admin/_grappelli_admin_tools/base.html" %} +{% load i18n admin_tools_menu_tags %} + +{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} + +{% block extrastyle %} + {{ block.super }} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu_css %} + {% endif %} + {% endif %} +{% endblock %} + +{% block branding %} +

{% trans 'Django administration' %}

+{% endblock %} + +{% block nav-global %} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu %} + {% endif %} + {% endif %} +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html new file mode 100644 index 0000000..2f3bb13 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html @@ -0,0 +1,18 @@ +{% extends "admin/_grappelli_admin_tools/base_site.html" %} +{% load i18n admin_tools_dashboard_tags %} + +{% block extrastyle %} +{{ block.super }} +{% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %} +{% endblock %} + + +{% block bodyclass %}admin-tools dashboard{% endblock %} +{% block content-class %}content-grid{% endblock %} + +{% block breadcrumbs %}{% endblock %} +{% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + +{% block content %} + {% admin_tools_render_dashboard %} +{% endblock %} -- cgit v1.2.3-70-g09d2