diff --git a/dashboard/views.py b/dashboard/views.py index 7a650cd..aa8daec 100755 --- a/dashboard/views.py +++ b/dashboard/views.py @@ -2,13 +2,16 @@ from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.auth.decorators import permission_required from codereview.dashboard.models import Repository +from codereview.review.models import Review @permission_required('dashboard.browse') def index(request): """ List available repositories """ repositories = Repository.objects.all() + reviews = Review.objects.all().order_by('-created') data = RequestContext(request, { 'repositories': repositories, + 'reviews': reviews, }) return render_to_response('dashboard/index.html', data) diff --git a/templates/dashboard/index.html b/templates/dashboard/index.html index 055dee2..bf5fd18 100644 --- a/templates/dashboard/index.html +++ b/templates/dashboard/index.html @@ -9,3 +9,26 @@ {% endfor %} {% endblock %} + +{% block content %} +
Review | +Created | +Comments | +
---|---|---|
+ #{{ review.pk }} - + {{ review.description }} + | +{{ review.created }} | +{{ review.comment_set.count }} | +