From 37ca84e1f55e14b87b1f8d9e02e81d9b55efca85 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 14 Oct 2012 22:29:43 -0400 Subject: moved and modified a few templates --- design/templates/admin/base.html | 119 ++++++++++++++++++++++++++++++++++++ design/templates/admin/buttons.html | 59 ++++++++++++++++++ design/templates/admin/index.html | 79 ++++++++++++++++++++++++ design/templates/admin/message.html | 21 +++++++ 4 files changed, 278 insertions(+) create mode 100644 design/templates/admin/base.html create mode 100644 design/templates/admin/buttons.html create mode 100644 design/templates/admin/index.html create mode 100644 design/templates/admin/message.html (limited to 'design/templates/admin') diff --git a/design/templates/admin/base.html b/design/templates/admin/base.html new file mode 100644 index 0000000..3ed4858 --- /dev/null +++ b/design/templates/admin/base.html @@ -0,0 +1,119 @@ +{% load admin_static %}{% load url from future %}{% load i18n grp_tags %} + + + + {% block title %}{% endblock %} + + {% block blockbots %}{% endblock %} + + {% block stylesheets %} + + + + {% comment %}{% if LANGUAGE_BIDI %}{% endif %}{% endcomment %} + {% endblock %} + + {% block extrastyle %}{% endblock %} + + {% block javascripts %} + + + + + + {% if debug %} + + + + + + + + + + + + + + {% else %} + + + {% endif %} + {% endblock %} + + {% block extrahead %}{% endblock %} + + +
+ + +
+ {% if not is_popup %} + + + {% include "admin/includes_grappelli/header.html" %} + + +
+ + +
+ {% endif %} +
+ + +
+ + + {% if messages %} +
    + {% for message in messages %} + {{ message }} + {% endfor %} +
+ {% 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/design/templates/admin/buttons.html b/design/templates/admin/buttons.html new file mode 100644 index 0000000..e1a7a98 --- /dev/null +++ b/design/templates/admin/buttons.html @@ -0,0 +1,59 @@ + + +
+
+

Publish Site

+ {% if message %} +
    +
  • {{message}}...
  • +
+ {%endif%} + +
+
+ diff --git a/design/templates/admin/index.html b/design/templates/admin/index.html new file mode 100644 index 0000000..cbb2904 --- /dev/null +++ b/design/templates/admin/index.html @@ -0,0 +1,79 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n grp_tags log %} + + +{% block javascripts %} + {{ block.super }} +{% endblock %} + + +{% block breadcrumbs %} + +{% endblock %} +{% block content_title %} + {% if title %} +

{{ title }}

+ {% endif %} +{% endblock %} + + +{% block content %} +
+
+ {% for app in app_list %} +
+

{% trans app.name %}

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

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

+ {% endfor %} +
+{% include 'admin/buttons.html' %} +
+
+

{% trans 'Recent Actions' %}

+
+

{% trans 'My Actions' %}

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

{% trans 'None available' %}

+ {% else %} +
    + {% for entry in admin_log %} +
  • + {% if entry.is_deletion %} + {{ entry.object_repr }} + {% else %} + {{ entry.object_repr }} + {% endif %} + {% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %} +
  • + {% endfor %} +
+ {% endif %} +
+
+
+
+{% endblock %} + diff --git a/design/templates/admin/message.html b/design/templates/admin/message.html new file mode 100644 index 0000000..528fb01 --- /dev/null +++ b/design/templates/admin/message.html @@ -0,0 +1,21 @@ +{% extends 'admin/base_site.html' %} + +{% block content %} +{{message}}... +{% endblock %} + +{% block onload %} +onLoad="setTimeout('delayer()', 1000)" +{% endblock %} + +{% block extrahead %} + +{% endblock %} + -- cgit v1.2.3-70-g09d2