diff --git a/pinaxcon/templates/registrasion/report.html b/pinaxcon/templates/registrasion/report.html index 217611097a8e386ef870fa9b0a0314aa84e239ae..79beb41d432a8a08a76a6b3855b66867cd26558a 100644 --- a/pinaxcon/templates/registrasion/report.html +++ b/pinaxcon/templates/registrasion/report.html @@ -2,6 +2,9 @@ {% load bootstrap %} {% load registrasion_tags %} +{% block page_title %}Registration report{% endblock %} +{% block head_title %}Registration report - {{ title }}{% endblock %} + {% block content %}

{{ title }}

diff --git a/pinaxcon/templates/registrasion/reports_list.html b/pinaxcon/templates/registrasion/reports_list.html index 6f9c8d387d0e4f88f31a88767b088cf877057def..b7ae25052019197f760377a760e44528ee630abe 100644 --- a/pinaxcon/templates/registrasion/reports_list.html +++ b/pinaxcon/templates/registrasion/reports_list.html @@ -1,14 +1,15 @@ {% extends "site_base.html" %} {% load registrasion_tags %} -{% block content %} -

Registration reports

+{% block page_title %}Registration reports{% endblock %} +{% block head_title %}Registration reports{% endblock %} +{% block content %} {% for report in reports %}
- {{ report.name }} + {{ report.title }} {{ report.description }} diff --git a/vendor/registrasion/registrasion/reporting/reports.py b/vendor/registrasion/registrasion/reporting/reports.py index f63bacff5372518500dd46e693857fba1fb04459..5795a59921a5af4d3426401a1474a5cb9ce56c8e 100644 --- a/vendor/registrasion/registrasion/reporting/reports.py +++ b/vendor/registrasion/registrasion/reporting/reports.py @@ -78,6 +78,7 @@ class _ReportTemplateWrapper(object): def count(self): return self.report.count() + class BasicReport(Report): def __init__(self, title, headings, link_view=None): @@ -166,6 +167,7 @@ class QuerysetReport(BasicReport): def count(self): return self._queryset.count() + class Links(Report): def __init__(self, title, links): @@ -193,6 +195,7 @@ class Links(Report): def count(self): return len(self._links) + def report_view(title, form_type=None): ''' Decorator that converts a report view function into something that displays a Report. diff --git a/vendor/registrasion/registrasion/reporting/views.py b/vendor/registrasion/registrasion/reporting/views.py index 024aa53fbc2aba74a707a1e275bc04537f097a2b..f2d49a5f55123161c4f642934dcd83b7bdaa684a 100644 --- a/vendor/registrasion/registrasion/reporting/views.py +++ b/vendor/registrasion/registrasion/reporting/views.py @@ -51,6 +51,7 @@ def reports_list(request): for report in get_all_reports(): reports.append({ "name": report.__name__, + "title": report.title, "url": reverse(report), "description": report.__doc__, })