summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tbc/views.py b/tbc/views.py
index a232b36..bc3913b 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -652,3 +652,12 @@ def BooksUnderProgress(request):
else:
context['user'] = request.user
return render_to_response('tbc/books_under_progress.html', context)
+
+
+def RedirectToIpynb(request, notebook_path=None):
+ context = {}
+ notebook = notebook_path.split("/")
+ notebook[0] = "notebooks"
+ notebook = "/".join(notebook)
+ redirect_url = "https://ipynb.fossee.in/"+notebook
+ return redirect(redirect_url)