Permalink
Browse files

Add link for editing pip stuff.

  • Loading branch information...
1 parent e66fe00 commit e087378c19f25c5f0daba3c653df84b6d7e41915 Dusty Phillips committed Sep 6, 2010
@@ -20,6 +20,7 @@
url('^$', 'list_projects', name="list_projects"),
url('^(?P<project_id>\d+)/view/$', 'view_project', name="view_project"),
url('^(?P<project_id>\d+)/edit/$', 'edit_project', name="edit_project"),
+ url('^pip/(?P<project_id>\d+)/edit/$', 'edit_pip', name="edit_pip"),
url('^add/$', 'add_project', name="add_project"),
url('^(?P<project_id>\d+)/delete/$', 'delete_project', name="delete_project"),
url('^(?P<project_id>\d+)/favourite/$', 'favourite_project', name="favourite_project"),
@@ -114,6 +114,11 @@ def favourite_project(request, project_id):
project.save()
return handle_ajax(request)
+# I'm wondering if pip doesn't deserve its own app
+def edit_pip(request, project_id):
+ from django.http import HttpResponse
+ return HttpResponse("Boilerplate")
+
def project_notifications(request, project_id):
project = Project.objects.get(pk=project_id)
notifications = Notification.objects.filter(
@@ -1,3 +1,4 @@
This is a pip project. We aren't handling those very well yet.
But we're working on it. Hence this placeholder template.
+<a href="{% url edit_pip project.id %}" class="button right grey">Edit</a>

0 comments on commit e087378

Please sign in to comment.