Revert "statistics: add new module."

This reverts commit 96c3cd2b1f.

    Unexpected commit in master.
This commit is contained in:
Mikaël Ates 2013-07-15 17:06:34 +02:00
parent c98ba2cc05
commit b22ecaafb8
14 changed files with 0 additions and 65 deletions

View File

@ -159,7 +159,6 @@ INSTALLED_APPS = (
'calebasse.facturation',
'calebasse.personnes',
'calebasse.ressources',
'calebasse.statistics',
'calebasse.middleware.request',
'south',
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

View File

@ -1074,9 +1074,6 @@ li#ressources a#img:hover { background-image: url(icon-ressources-hover.png); }
li#facturation a#img { background-image: url(icon-facturation.png); }
li#facturation a#img:hover { background-image: url(icon-facturation-hover.png); }
li#statistics a#img { background-image: url(icon-statistics.png); }
li#statistics a#img:hover { background-image: url(icon-statistics-hover.png); }
div.agenda a.print {
display: block;
text-align: right;

View File

@ -1,3 +0,0 @@
{% extends "calebasse/base.html" %}
{% block title %}{{ block.super }} - Statistiques {% endblock %}

View File

@ -1,19 +0,0 @@
{% extends "ressources/base.html" %}
{% block header %}
{{ block.super }}
<span>Statistiques - {{ service_name }}</span>
{% endblock %}
{% block appbar %}
<h2>Statistiques</h2>
<a href="/">Retourner à l'accueil</a>
{% endblock %}
{% block content %}
<ul>
{% for statistic in statistics %}
<li><a href="{{ statistic }}">{{ statistic }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -1,16 +0,0 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)

View File

@ -1,10 +0,0 @@
from django.conf.urls import patterns, include, url
from views import StatisticsHomepageView
statistics_patterns = patterns('calebasse.statistics.views', )
urlpatterns = patterns('',
url(r'^(?P<model_name>[a-z-]*)/', include(statistics_patterns)),
url(r'^$', StatisticsHomepageView.as_view()),
)

View File

@ -1,11 +0,0 @@
# -*- coding: utf-8 -*-
from calebasse.cbv import TemplateView
class StatisticsHomepageView(TemplateView):
template_name = 'statistics/index.html'
def get_context_data(self, **kwargs):
context = super(StatisticsHomepageView, self).get_context_data(**kwargs)
context['statistics'] = list()
return context

View File

@ -24,7 +24,6 @@ service_patterns = patterns('',
url(r'^facturation/', include('calebasse.facturation.urls')),
url(r'^personnes/', include('calebasse.personnes.urls')),
url(r'^ressources/', include('calebasse.ressources.urls')),
url(r'^statistics/', include('calebasse.statistics.urls')),
)
urlpatterns = patterns('',

View File

@ -17,7 +17,6 @@ APPLICATIONS = (
(u'Facturation et décompte', 'facturation', True),
(u'Gestion des personnes', 'personnes', True),
(u'Gestion des ressources', 'ressources', True),
(u'Statistiques', 'statistics', False),
)
def redirect_to_homepage(request):