Stats extension is now compatible with the new layout.

This commit is contained in:
tonio
2010-05-05 14:08:06 +02:00
parent c7c85dba0e
commit d8ccbb736f
3 changed files with 6 additions and 7 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
"""
graph plugin do display rrd stats
Graphical statistics about emails traffic using RRDtool
This module provides rrdtool support to retreive statistics
from postfix log : sent, received, bounced, rejected
This module provides support to retrieve statistics from postfix log :
sent, received, bounced, rejected
"""
import calendar
@@ -67,7 +67,7 @@ def menu(**kwargs):
return []
@login_required
def domain(request,dom_id):
def domain(request, dom_id):
domains = []
errors = []
return graph_display(request,dom_id,graph_types)
+2 -2
View File
@@ -1,9 +1,8 @@
{% extends "nlayout.html" %}
{% load i18n %}
{% load stats_extra %}
{% load admin_extras %}
{% block html_head %}
<script src="/static/js/mootools-more.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/stylesheets/calendar.css" />
<style type="text/css">
#graphcontent {
margin: 25px auto 10px;
@@ -30,6 +29,7 @@ window.addEvent("domready", function() {
<script type="text/javascript" src="/static/js/calendar.js"></script>
{% endblock %}
{% block middletitle %}{% trans "Global statistics" %}{% endblock %}
{% block menu %}{% domains_menu "stats" perms %}{% endblock %}
{% block content %}
<div id="graphcontent">
<div id="selectors">
-1
View File
@@ -1,7 +1,6 @@
{% extends "admin/domain_header.html" %}
{% load i18n %}
{% block html_head %}
<script src="/static/js/mootools-more.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/stylesheets/calendar.css" />
<style type="text/css">
#selectors {