mirror of
https://github.com/correl/codereview.git
synced 2024-11-27 11:09:50 +00:00
12 lines
394 B
Python
Executable file
12 lines
394 B
Python
Executable file
from django.shortcuts import render_to_response
|
|
from django.template import RequestContext
|
|
from codereview.dashboard.models import Repository
|
|
|
|
def index(request):
|
|
""" List available repositories
|
|
"""
|
|
repositories = Repository.objects.all()
|
|
data = RequestContext(request, {
|
|
'repositories': repositories,
|
|
})
|
|
return render_to_response('dashboard/index.html', data)
|