From 2b49668f127b3be24be722ffdd00dd819b1f1acf Mon Sep 17 00:00:00 2001 From: Magnus Granberg Date: Mon, 27 Jul 2015 02:41:09 +0200 Subject: add repoman and qa page on new --- python/tbc_www/urls.py | 1 + python/tbc_www/views.py | 7 +++++++ python/templates/pages/home/index.html | 2 +- python/templates/pages/new/index.html | 2 +- python/templates/pages/new/repomanqa/index.html | 26 +++++++++++++++++++++++++ 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 python/templates/pages/new/repomanqa/index.html diff --git a/python/tbc_www/urls.py b/python/tbc_www/urls.py index 4d50f40..55fbca9 100644 --- a/python/tbc_www/urls.py +++ b/python/tbc_www/urls.py @@ -6,5 +6,6 @@ urlpatterns = patterns('tbc_www.views', url(r'^categories/(?P\d+)/$', 'packages'), url(r'^package/(?P\d+)/$', 'ebuilds'), url(r'^ebuild/(?P\d+)/$', 'ebuild'), + url(r'^new/repomanqa/$', 'new_repomanqa'), url(r'^new/$', 'new_main'), ) diff --git a/python/tbc_www/views.py b/python/tbc_www/views.py index 5b719aa..7e99671 100644 --- a/python/tbc_www/views.py +++ b/python/tbc_www/views.py @@ -190,3 +190,10 @@ def new_main(request): TmpDict['BJ'] = adict TmpDict['RM'] = BuildLogsRepomanQa.objects.order_by('-Id')[:Lines] return render(request, 'pages/' + pagerequest + '/index.html', TmpDict) + +def new_repomanqa(request): + pagerequest = 'new' + Lines = 30 + TmpDict = default_TmpDict(pagerequest) + TmpDict['RM_tmp'] = BuildLogsRepomanQa.objects.order_by('-Id')[:Lines] + return render(request, 'pages/' + pagerequest + '/repomanqa/index.html', TmpDict) diff --git a/python/templates/pages/home/index.html b/python/templates/pages/home/index.html index d2b0ff7..9a75c4e 100644 --- a/python/templates/pages/home/index.html +++ b/python/templates/pages/home/index.html @@ -18,7 +18,7 @@ {% include "includes/frontpage/new_build_req" %}
-

New Repoman or QA's on the New Repoman or QA's

+

New Repoman or QA's on the New Repoman or QA's

{% include "includes/frontpage/new_repoman_qa" %}
diff --git a/python/templates/pages/new/index.html b/python/templates/pages/new/index.html index 5195584..93cf42f 100644 --- a/python/templates/pages/new/index.html +++ b/python/templates/pages/new/index.html @@ -17,7 +17,7 @@ {% include "includes/frontpage/new_build_req" %}
-

New Repoman or QA's on the New Repoman or QA's

+

New Repoman or QA's on the New Repoman or QA's

{% include "includes/frontpage/new_repoman_qa" %}
diff --git a/python/templates/pages/new/repomanqa/index.html b/python/templates/pages/new/repomanqa/index.html new file mode 100644 index 0000000..d634b67 --- /dev/null +++ b/python/templates/pages/new/repomanqa/index.html @@ -0,0 +1,26 @@ +{% extends "layout/base.html" %} +{% block content %} + + +{% endblock %} \ No newline at end of file -- cgit v1.2.3-65-gdbad