Permalink
Browse files

added repos list

  • Loading branch information...
1 parent 198c2c8 commit 7c0911490f9992d0a02595e5509dffaf3e5e6707 @arjunc77 committed Jan 24, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 gitcommands/views.py
View
@@ -10,7 +10,7 @@
#from bootstrap.forms import QuestionForm, AnswerForm \
#, ExampleForm, AjaxAutoComplete, PopoverForm
-from gitcommands.models import GitCommit#, GitUser, GitRepository
+from gitcommands.models import GitCommit, GitRepository#, GitUser,
#Home Page
@@ -38,3 +38,12 @@ def list_commits(request):
#c['git_users'] = GitUser.objects.all()
c['hero_title'] = "Hello, " + str(request.user.username) + "!"
return render_to_response('gitcommands/list_commits.html', c)
+
+
+def list_repos(request):
+ c = {}
+ repos = GitRepository.objects.all()
+ c['repos'] = repos
+ c['user'] = request.user
+ c['hero_title'] = "Hello, " + str(request.user.username) + "!"
+ return render_to_response('gitcommands/list_repos.html', c)

0 comments on commit 7c09114

Please sign in to comment.