mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
15 lines
No EOL
592 B
Python
15 lines
No EOL
592 B
Python
from django.template import RequestContext
|
|
from django.shortcuts import render_to_response
|
|
from apps.statistics.models import MStatistics, MFeedback
|
|
|
|
def dashboard_graphs(request):
|
|
statistics = MStatistics.all()
|
|
return render_to_response('statistics/render_statistics_graphs.xhtml', {
|
|
'statistics': statistics,
|
|
}, context_instance=RequestContext(request))
|
|
|
|
def feedback_table(request):
|
|
feedbacks = MFeedback.all()
|
|
return render_to_response('statistics/render_feedback_table.xhtml', {
|
|
'feedbacks': feedbacks,
|
|
}, context_instance=RequestContext(request)) |