-
- return render_to_response(request,
- 'mediagoblin/root.html',
- {'media_entries': media_entries})
+
+ pagination = Pagination(page, cursor)
+ media_entries = pagination()
+
+ return render_to_response(
+ request, 'mediagoblin/root.html',
+ {'media_entries': media_entries,
+ 'allow_registration': mg_globals.app_config["allow_registration"],
+ 'pagination': pagination})
+
+
+def simple_template_render(request):
+ """
+ A view for absolutely simple template rendering.
+ Just make sure 'template' is in the matchdict!
+ """
+ template_name = request.matchdict['template']
+ return render_to_response(
+ request, template_name, {})