From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- .../templates/admin/_grappelli/app_index.html | 40 +++++++++++ .../grappelli/templates/admin/_grappelli/base.html | 78 ++++++++++++++++++++++ .../templates/admin/_grappelli/base_site.html | 9 +++ .../templates/admin/_grappelli/index.html | 61 +++++++++++++++++ 4 files changed, 188 insertions(+) create mode 100644 app/lib/grappelli/templates/admin/_grappelli/app_index.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/base.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/base_site.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/index.html (limited to 'app/lib/grappelli/templates/admin/_grappelli') diff --git a/app/lib/grappelli/templates/admin/_grappelli/app_index.html b/app/lib/grappelli/templates/admin/_grappelli/app_index.html new file mode 100644 index 0000000..e9cb806 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/app_index.html @@ -0,0 +1,40 @@ +{% extends "admin/_grappelli/index.html" %} + + +{% load i18n grp_tags %} + + +{% if not is_popup %} + {% block breadcrumbs %} + + {% endblock %} +{% endif %} + + +{% block content %} +
+
+ {% if app_list %} + {% for app in app_list %} +
+

{% trans app.name %}

+ {% for model in app.models %} +
+ {% if model.perms.change %}{{ model.name }}{% else %}{{ model.name }}{% endif %} + +
+ {% endfor %} +
+ {% endfor %} + {% endif %} +
+
+{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli/base.html b/app/lib/grappelli/templates/admin/_grappelli/base.html new file mode 100644 index 0000000..16676b9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/base.html @@ -0,0 +1,78 @@ + + + + {% block title %}{% endblock %} + {% block blockbots %}{% endblock %} + + + {% load adminmedia i18n grp_tags %} + + + {% block stylesheets %} + + {% if LANGUAGE_BIDI %}{% endif %} + + + {% endblock %} + {% block extrastyle %}{% endblock %} + + + {% block javascripts %} + + + + + + + + {% endblock %} + + {% block extrahead %}{% endblock %} + + +
+ + + {% if not is_popup %} + {% include "admin/includes_grappelli/header.html" %} + + {% 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/base_site.html b/app/lib/grappelli/templates/admin/_grappelli/base_site.html new file mode 100644 index 0000000..1f94985 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/base_site.html @@ -0,0 +1,9 @@ +{% extends "admin/_grappelli/base.html" %} + + +{% load i18n grp_tags %} + + +{% block title %}{{ title }} | {% grappelli_admin_title %}{% endblock %} +{% block branding %}

{% grappelli_admin_title %}

{% endblock %} +{% block nav-global %}{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli/index.html b/app/lib/grappelli/templates/admin/_grappelli/index.html new file mode 100644 index 0000000..8dedd3d --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/index.html @@ -0,0 +1,61 @@ +{% extends "admin/_grappelli/base_site.html" %} + + +{% load i18n adminmedia grp_tags %} + + +{% block javascripts %} + {{ block.super }} +{% endblock %} + + +{% block bodyclass %}dashboard{% endblock %} +{% block content-class %}content-grid{% endblock %} + + +{% block breadcrumbs %}{% endblock %} + + +{% block content %} +
+
+ {% if app_list %} + {% for app in app_list %} +
+

{% trans app.name %}

+ {% for model in app.models %} +
+ {% if model.perms.change %}{{ model.name }}{% else %}{{ model.name }}{% endif %} + +
+ {% endfor %} +
+ {% endfor %} + {% else %} +

{% trans "You donĀ“t have permission to edit anything." %}

+ {% endif %} +
+
+
+

{% trans 'Recent Actions' %}

+
+

{% trans 'My Actions' %}

+ {% load log %} + {% get_admin_log 10 as admin_log for_user user %} + {% if not admin_log %} +

{% trans 'None available' %}

+ {% else %} + + {% endif %} +
+
+
+
+{% endblock %} -- cgit v1.2.3-70-g09d2