=== modified file 'lava_projects/views.py'
@@ -18,11 +18,15 @@
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden
-from django.shortcuts import get_object_or_404
+from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, loader
from django.utils.translation import ugettext as _
from django.views.generic.list_detail import object_list, object_detail
+from lava_server.bread_crumbs import (
+ BreadCrumb,
+ BreadCrumbTrail,
+)
from lava_projects.models import (
Project,
ProjectFormerIdentifier,
@@ -34,11 +38,13 @@
)
+@BreadCrumb("Projects")
def project_root(request):
template_name = "lava_projects/project_root.html"
t = loader.get_template(template_name)
c = RequestContext(request, {
- 'recent_project_list': Project.objects.accessible_by_principal(request.user).recently_registered()
+ 'recent_project_list': Project.objects.accessible_by_principal(request.user).recently_registered(),
+ 'bread_crumb_trail': BreadCrumbTrail.leading_to(project_root)
})
return HttpResponse(t.render(c))