From b7a478c798f525b39fc52b4b69d3863565cac377 Mon Sep 17 00:00:00 2001 From: Magnus Granberg Date: Fri, 6 Jan 2017 19:00:35 +0100 Subject: add categories, logs and build_req --- python/templates/includes/frontpage/new_qa | 10 + python/templates/pages/build_req/index.html | 16 ++ python/templates/pages/categories/index.html | 61 ++++++ .../templates/pages/categories/packages/index.html | 63 ++++++ .../categories/packages/versions/ebuild/index.html | 75 +++++++ .../pages/categories/packages/versions/index.html | 233 +++++++++++++++++++++ python/templates/pages/logs/all/build/index.html | 103 +++++++++ python/templates/pages/logs/build/index.html | 114 ++++++++++ .../pages/logs/build/submitbug/index.html | 8 + python/templates/pages/logs/index.html | 42 ++++ 10 files changed, 725 insertions(+) create mode 100644 python/templates/includes/frontpage/new_qa create mode 100644 python/templates/pages/build_req/index.html create mode 100644 python/templates/pages/categories/index.html create mode 100644 python/templates/pages/categories/packages/index.html create mode 100644 python/templates/pages/categories/packages/versions/ebuild/index.html create mode 100644 python/templates/pages/categories/packages/versions/index.html create mode 100644 python/templates/pages/logs/all/build/index.html create mode 100644 python/templates/pages/logs/build/index.html create mode 100644 python/templates/pages/logs/build/submitbug/index.html create mode 100644 python/templates/pages/logs/index.html diff --git a/python/templates/includes/frontpage/new_qa b/python/templates/includes/frontpage/new_qa new file mode 100644 index 0000000..5b3607b --- /dev/null +++ b/python/templates/includes/frontpage/new_qa @@ -0,0 +1,10 @@ + + {% for QA in QA_tmp %} + + + + + {% endfor %} +
+ {{ QA.BuildLogId.EbuildId.PackageId.CategoryId.Category }}/{{ QA.BuildLogId.EbuildId.PackageId.Package }}::{{ QA.BuildLogId.EbuildId.PackageId.RepoId.Repo }} +

{{ QA.SummeryText|truncatewords:3 }}

diff --git a/python/templates/pages/build_req/index.html b/python/templates/pages/build_req/index.html new file mode 100644 index 0000000..979921c --- /dev/null +++ b/python/templates/pages/build_req/index.html @@ -0,0 +1,16 @@ +{% extends "layout/base.html" %} +{% block content %} +
+ +
+ + {% include "includes/frontpage/new_build_req" %} +
+
+
+{% endblock %} diff --git a/python/templates/pages/categories/index.html b/python/templates/pages/categories/index.html new file mode 100644 index 0000000..f9463e9 --- /dev/null +++ b/python/templates/pages/categories/index.html @@ -0,0 +1,61 @@ +{% extends "layout/base.html" %} +{% block content %} +
+
+
+ + +

Packages

+ +
+
+
+
+

Browse Categories

+
+
+
    + {% for C_list in CM_tmp %} +
  • {{ C_list.letter }}
  • + {% for CM in C_list.CM_list %} +
  • {{CM.Category }}
  • + {% endfor %} + {% endfor %} +
+
+
+
+ +
+ +
+
+
+{% endblock %} diff --git a/python/templates/pages/categories/packages/index.html b/python/templates/pages/categories/packages/index.html new file mode 100644 index 0000000..0e5678d --- /dev/null +++ b/python/templates/pages/categories/packages/index.html @@ -0,0 +1,63 @@ +{% extends "layout/base.html" %} +{% block content %} +
+
+
+ + +
+
+

+ + {{ C.CategoryId.Category }} +

+
+
+

+ {{ C.Descriptions }} +

+
+
+
+ +
+
+ + +
+
+

All packages

+
+ +{% for PM in PM_tmp %} + + + + +{% endfor %} + +
{{ PM.PackageId.Package }}{{ PM.Descriptions }}
+
+
+
+
+
+

Statistics

+
+
+ {{ PM_tmp|length }} Packages +
+
+
+
+ +
+
+
+{% endblock %} diff --git a/python/templates/pages/categories/packages/versions/ebuild/index.html b/python/templates/pages/categories/packages/versions/ebuild/index.html new file mode 100644 index 0000000..49ad3e5 --- /dev/null +++ b/python/templates/pages/categories/packages/versions/ebuild/index.html @@ -0,0 +1,75 @@ +{% extends "layout/base.html" %} +{% block content %} +
+
+

{{ E.PackageId.CategoryId.Category }}/{{ E.PackageId.Package }}

+ + {% for EM in EM_tmp %} + + + + + {% endfor %} +
+ {{ E.PackageId.Package }}-{{ E.Version }}::{{ E.PackageId.RepoId.Repo }}

+ Build +
+ {% for K in EK_tmp %} + {% if K.EbuildId.EbuildId == E.EbuildId and K.KeywordId.Keyword != '*' %} + {% if K.Status == 'Stable' %}{{ K.KeywordId.Keyword }}{% endif %} + {% if K.Status == 'Unstable' %}{{ K.KeywordId.Keyword }}{% endif %} + {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} + {% endif %} + {% endfor %} +

+ {% for U in EU_tmp %} + {% if U.Status %} + {{ U.UseId.Flag }} + {% else %} + {{ U.UseId.Flag }} + {% endif %} + {% endfor %} +

+ {% for R in ER_tmp %} + {{ R.RestrictionId.Restriction }} + {% endfor %} +

+
+
+
+ + {% for BL in BL_tmp %} + + + + {% endfor %} +
+ {% for FI in fi_tmp %} + {% if FI.BuildLogId == BL.BuildLogId %} + {% if FI.Blo %} + Others + {% else %} + {% if FI.qa %} + Qa + {% else %} + Qa + {% endif %} + {% if FI.repoman %} + Repoman + {% else %} + Repoman + {% endif %} + + {% if FI.Blb %} + Build + {% else %} + Build + {% endif %} + {% endif %} + {% endif %} + {% endfor %} + More info +
+
+
+{% endblock %} \ No newline at end of file diff --git a/python/templates/pages/categories/packages/versions/index.html b/python/templates/pages/categories/packages/versions/index.html new file mode 100644 index 0000000..7300f07 --- /dev/null +++ b/python/templates/pages/categories/packages/versions/index.html @@ -0,0 +1,233 @@ +{% extends "layout/base.html" %} +{% block content %} +
+
+
+
+ + +
+
+

+ {{ P.PackageId.Package }}/ +
+ +
{{ P.PackageId.Package }}
+
+

+
+
+

+ {{ P.Descriptions }} +

+ +

+ https://wiki.gnome.org/Accessibility +

+
+
+
+
+
+
+ + +
+
+
+ +
+
+
+
+

+ Available Versions +

+
+ {% for E in EM_info %} + + + + + + + + + + + + + +
+ {{ E.Version }} :{{ E.Slot }}:{{ P.PackageId.RepoId.Repo }} + {% for R in E.ER_tmp %} + {{ R.RestrictionId.Restriction|first|upper }} + {% endfor %} + + {{ E.TimeStamp|date:"D d b Y G i" }} + +
+ {% for K in E.EK_tmp %} + {% if K.EbuildId.EbuildId == E.EbuildId and K.KeywordId.Keyword != '*' and '-' not in K.KeywordId.Keyword %} + {% if K.Status == 'Stable' %}{{ K.KeywordId.Keyword }}{% endif %} + {% if K.Status == 'Unstable' %}~{{ K.KeywordId.Keyword }}{% endif %} + {% if K.Status == 'Negative' %}-{{ K.KeywordId.Keyword }}{% endif %} + {% endif %} + {% endfor %} +
+ {% for U in E.EU_tmp %} + {% if U.Status %} + {{ U.UseId.Flag }} + {% endif %} + {% endfor %} +
+ {% for BL in E.BL_tmp %} + {% for FI in E.fi_tmp %} + {% if FI.BuildLogId == BL.BuildLogId %} + {% if FI.Blo %} + Others + {% else %} + {% if FI.qa %} + Qa + {% else %} + Qa + {% endif %} + {% if FI.repoman %} + Repoman + {% else %} + Repoman + {% endif %} + + {% if FI.Blb %} + Build + {% else %} + Build + {% endif %} + {% endif %} + {% endif %} + {% endfor %} + More info + {% endfor %} +
+{% endfor %} +
+ + + + +
+
+

Package Metadata

+
+ +
+ +
+
+

Changelog

+
+ +
+ +
+ +
+ + + +
+
+
+ +{% endblock %} diff --git a/python/templates/pages/logs/all/build/index.html b/python/templates/pages/logs/all/build/index.html new file mode 100644 index 0000000..efac3b3 --- /dev/null +++ b/python/templates/pages/logs/all/build/index.html @@ -0,0 +1,103 @@ +{% extends "layout/base.html" %} +{% block content %} +
+
+

+ + Build Logs On Packages +

+ {% if BL_tmp.has_other_pages %} +
    + {% if BL_tmp.has_previous %} +
  • «
  • + {% else %} +
  • «
  • + {% endif %} + {% for i in BL_tmp.paginator.page_range %} + {% if BL_tmp.number == i %} +
  • {{ i }} (current)
  • + {% else %} +
  • {{ i }}
  • + {% endif %} + {% endfor %} + {% if BL_tmp.has_next %} +
  • »
  • + {% else %} +
  • »
  • + {% endif %} +
+{% endif %} +
+
+ + {% for BL in BL_tmp %} + + + + +{% endfor %} +
+ + {{ BL.C }}//{{ BL.P }}-{{ BL.V }}::{{ BL.R }} + + +

{{ BL.SummeryText|truncatewords:5 }}

+ {% if BL.Fail %} + {% if BL.FI.others %} + Others + {% else %} + {% if BL.FI.qa %} + + {% else %} + + {% endif %} + Qa + {% if BL.FI.repoman %} + + {% else %} + + {% endif %} + Repoman + {% if BL.FI.TestRun %} + {% if BL.FI.test %} + + {% else %} + + {% endif %} + Test + {% endif %} + {% if BL.FI.build %} + {{ BL.FI.builderror }} + {% else %} + Build + {% endif %} + + {% endif %} + {% else %} + Ok + {% endif %} +
+
+
+{% if BL_tmp.has_other_pages %} + +{% endif %} +{% endblock %} diff --git a/python/templates/pages/logs/build/index.html b/python/templates/pages/logs/build/index.html new file mode 100644 index 0000000..0bbc96b --- /dev/null +++ b/python/templates/pages/logs/build/index.html @@ -0,0 +1,114 @@ +{% extends "layout/base.html" %} +{% block content %} +
+

{{ BLI.C }}/{{ BLI.P }}-{{ BLI.V }}::{{ BLI.R }} + {% if FI.others %} + Others + {% else %} + {% if FI.qa %} + + {% else %} + + {% endif %} + Qa + {% if FI.repoman %} + + {% else %} + + {% endif %} + Repoman + {% if FI.TestRun %} + {% if FI.test %} + + {% else %} + + {% endif %} + Test + {% endif %} + {% if FI.build %} + {{ FI.builderror }} + {% else %} + Build + {% endif %} + + {% endif %} +

+ {% if BLI.BugId %} + + Bug Gentoo {{ BLI.BugId }} + + {% endif %} +
+
+
+

Host information

+ Host: {{ BLI.hostname }}
+ Config: {{BLI.config }}
+ Profile: {{BLI.profile }}
+ Emerge options : +
+ {% if BLI.use_enable %} +
+

Enabled useflags

+ {% for use in BLI.use_enable %} + {{ use }} + {% endfor %} +
+ {% endif %} + {% if BLI.use_disable %} +
+

Disabled useflags

+ {% for use in BLI.use_disable %} + {{ use }} + {% endfor %} +
+{% endif %} +
+
+
+ {% if BLI.Summery_text %} +

Summery:

+ {{ BLI.Summery_text|linebreaks }} + {% endif %} +
+
+
+
+ {% if BLI.Repoman %} +

Repoman Summery:

+ {{ BLI.Repoman|linebreaks }} + {% endif %} +
+
+
+
+ {% if BLI.QA %} +

QA Summery:

+ {{ BLI.QA|linebreaks }} + {% endif %} +
+
+
+
+

Emerge Info:

+ {{ BLI.emerge_info_text|linebreaks }} +
+
+
+
+ {% if BLI.logname %} +
+ Log file name:{{ BLI.logname }}
+ Raw log
+ {% if user.is_authenticated %} + {% if bugzillalogin %} +
+ {% else %} + + {% endif %} + Summit log to Gentoo's bugzilla + {% endif %} + {% endif %} +
+
+{% endblock %} diff --git a/python/templates/pages/logs/build/submitbug/index.html b/python/templates/pages/logs/build/submitbug/index.html new file mode 100644 index 0000000..4f1458f --- /dev/null +++ b/python/templates/pages/logs/build/submitbug/index.html @@ -0,0 +1,8 @@ +{% extends "layout/base.html" %} +{% block content %} +
+{% csrf_token %} +{{ form.as_p }} + +
+{% endblock %} diff --git a/python/templates/pages/logs/index.html b/python/templates/pages/logs/index.html new file mode 100644 index 0000000..ff5f354 --- /dev/null +++ b/python/templates/pages/logs/index.html @@ -0,0 +1,42 @@ +{% extends "layout/base.html" %} +{% block content %} +
+ +
+ + {% include "includes/frontpage/new_logs" %} +
+
+
+
+ +
+ + {% include "includes/frontpage/new_repoman" %} +
+
+
+
+ +
+ + {% include "includes/frontpage/new_qa" %} +
+
+
+{% endblock %} -- cgit v1.2.3-65-gdbad