aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/views.py
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2014-03-18 16:49:48 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2014-04-21 12:10:18 -0400
commitec5a385ada3401d6aab65c334b44ce5492ad032a (patch)
treead2cee2007712344b77feed7da2960b0420d5c97 /mediagoblin/views.py
parent2dd966b5e2c6c406d153e2d4cdf886e30198a1d3 (diff)
downloadmediagoblin-ec5a385ada3401d6aab65c334b44ce5492ad032a.tar.lz
mediagoblin-ec5a385ada3401d6aab65c334b44ce5492ad032a.tar.xz
mediagoblin-ec5a385ada3401d6aab65c334b44ce5492ad032a.zip
Big update. I added in a json-ld context file which will be used in all our
metadata columns in the future. The context describes the dublin core elements. It still has not been finalized however.
Diffstat (limited to 'mediagoblin/views.py')
-rw-r--r--mediagoblin/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mediagoblin/views.py b/mediagoblin/views.py
index 009e48e4..1ed71473 100644
--- a/mediagoblin/views.py
+++ b/mediagoblin/views.py
@@ -62,3 +62,9 @@ def terms_of_service(request):
return render_to_response(request,
'mediagoblin/terms_of_service.html', {})
+
+def metadata_context_view(request):
+ version = request.matchdict['version_number']
+ return render_to_response(request,
+ 'mediagoblin/metadata_contexts/v{version}'.format(
+ version=version), {})