Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add link for editing pip stuff.

  • Loading branch information...
commit e087378c19f25c5f0daba3c653df84b6d7e41915 1 parent e66fe00
@buchuki buchuki authored
View
1  greatbigcrane/project/urls.py
@@ -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"),
View
5 greatbigcrane/project/views.py
@@ -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(
View
1  greatbigcrane/templates/project/pip_detail.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.