Permalink
Browse files

Make a review view login required

  • Loading branch information...
1 parent 4157e23 commit 97803c9f71cb7d44437d32a2c391937aff73858f @holdenk committed Jan 19, 2013
Showing with 17 additions and 1 deletion.
  1. +8 −1 frontend/unicorn/templates/index.html
  2. +2 −0 frontend/unicorn/unicorn/urls.py
  3. +7 −0 frontend/unicorn/verify/views.py
@@ -1 +1,8 @@
-...
+<html>
+<head>
+<title>Holden's Magical Unicorn Review Board</title>
+</head>
+<body>
+Welcome to Holden's Magical Unicorn's Review Board, here you can review pull requests generated by <a href="https://github.com/holdenk/holdensmagicalunicorn">the magical unicorn</a>. Get started <a href="/review">here!</a>
+</body>
+</html>
@@ -14,4 +14,6 @@
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'^$', 'verify.views.index'),
+ url(r'^review', 'verify.views.review'),
+
)
@@ -1,8 +1,15 @@
# Create your views here.
from django.http import HttpResponse
from django.template import Context, loader
+from django.contrib.auth.decorators import login_required
def index(request):
t = loader.get_template("index.html")
c = Context()
return HttpResponse(t.render(c))
+
+@login_required
+def review(request):
+ t = loader.get_template("review.html")
+ c = Context()
+ return HttpResponse(t.render(c))

0 comments on commit 97803c9

Please sign in to comment.