diff options
author | Magnus Granberg <zorry@gentoo.org> | 2021-09-24 03:54:59 +0200 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2021-09-24 04:22:49 +0200 |
commit | 3fb5065d4b67af1df11cec4e7a3e888c9598b9d1 (patch) | |
tree | 7caa17a3a9b6e6f5afd6e8ed9ae034d051e07d4f /python/bb_dashboard/www/views.py | |
parent | Restart (diff) | |
download | tinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.tar.gz tinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.tar.bz2 tinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.zip |
Add Buildbot Dashboard for Gentoo Ci
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'python/bb_dashboard/www/views.py')
-rw-r--r-- | python/bb_dashboard/www/views.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/bb_dashboard/www/views.py b/python/bb_dashboard/www/views.py new file mode 100644 index 0000000..05dcd10 --- /dev/null +++ b/python/bb_dashboard/www/views.py @@ -0,0 +1,16 @@ +# Copyright 1998-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +from django.http import HttpResponse +from django.shortcuts import render +from django.conf import settings + +from .utils import default_siteinfo +from .models import Posts + +def index(request): + menyrequest = 'www' + siteinfo = default_siteinfo(request, menyrequest) + siteinfo['posts'] = Posts.objects.all()[:2] + htmlrequest = menyrequest + '/index.html' + return render(request, htmlrequest, siteinfo) |