summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/templates/pages')
-rw-r--r--python/templates/pages/cluster/index.html26
-rw-r--r--python/templates/pages/logs/build/index.html40
-rw-r--r--python/templates/pages/logs/index.html117
3 files changed, 150 insertions, 33 deletions
diff --git a/python/templates/pages/cluster/index.html b/python/templates/pages/cluster/index.html
new file mode 100644
index 0000000..307cae1
--- /dev/null
+++ b/python/templates/pages/cluster/index.html
@@ -0,0 +1,26 @@
+{% extends "layout/base.html" %}
+{% block content %}
+<div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">
+ <span class="fa fa-fw fa-history"></span>
+ <a href="/packages/added">Guests on the cluster</a>
+ </h3>
+ </div>
+ <div class="table-responsive">
+ <table class="table table-striped">
+ {% for CM in CM_tmp %}
+<tr>
+ <td>
+ <p>{{ CM.ConfigId.HostName }}</p>
+ </td>
+ <td>
+ <p>{{ CM.ConfigId.SetupId.Profile }}</p>
+ <span class="label label-info">{{ CM.Status }}</span>
+ </td>
+</tr>
+{% endfor %}
+ </table>
+ </div>
+</div>
+{% endblock %}
diff --git a/python/templates/pages/logs/build/index.html b/python/templates/pages/logs/build/index.html
index 0bbc96b..a6c13e4 100644
--- a/python/templates/pages/logs/build/index.html
+++ b/python/templates/pages/logs/build/index.html
@@ -64,6 +64,40 @@
</div>
{% endif %}
</div>
+ <div class="col-md-3">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">Resources</h3>
+ </div>
+ <div class="list-group">
+ <a href="https://bugs.gentoo.org/buglist.cgi?quicksearch={{ BLI.C }}/{{ BLI.P }}" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-bug"></span>
+ Related bugs
+ </a>
+ <a href="https://wiki.gentoo.org/index.php?title=Special%3ASearch&fulltext=Search&search={{ BLI.P }}" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-book"></span>
+ Documentation
+ </a>
+ <a href="https://forums.gentoo.org/search.php?search_terms=all&show_results=topics&search_keywords={{ BLI.P }}&mode=results" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-comments-o"></span>
+ Forums posts
+ </a>
+ <a href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{ BLI.C }}/{{ BLI.P }}" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-code-fork"></span>
+ Git repository browser
+ </a>
+ <a href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{ BLI.C }}/{{ BLI.P }}?showmsg=1" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-history"></span>
+ Git log
+ </a>
+ <a href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{ BLI.C }}/{{ BLI.P }}?h=master" class="list-group-item" target="_blank">
+ <span class="fa fa-fw fa-rss"></span>
+ Changes feed
+ </a>
+ </div>
+</div>
+
+ </div>
<div class="row-fluid">
<div class=span12>
{% if BLI.Summery_text %}
@@ -99,13 +133,9 @@
{% if BLI.logname %}
<br />
Log file name:{{ BLI.logname }}<br />
- <a href="{{ STATIC_URL }}/logs/{{BLI.hostname}}/{{BLI.config}}/{{ BLI.logname }}">Raw log<a/><br />
+ <a href="/static/logs/{{BLI.hostname}}/{{BLI.config}}/{{ BLI.logname }}">Raw log<a/><br />
{% if user.is_authenticated %}
- {% if bugzillalogin %}
<a href="/logs/build/submitlog/{{BLI.BuildLogId}}/">
- {% else %}
- <a href="/user/bugzillalogin/">
- {% endif %}
Summit log to Gentoo's bugzilla</a>
{% endif %}
{% endif %}
diff --git a/python/templates/pages/logs/index.html b/python/templates/pages/logs/index.html
index ff5f354..f770f95 100644
--- a/python/templates/pages/logs/index.html
+++ b/python/templates/pages/logs/index.html
@@ -4,39 +4,100 @@
<div class="panel-heading">
<h3 class="panel-title">
<span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Build Logs On Packages</a>
+ Logs On Packages
</h3>
+ {% if BL_tmp.has_other_pages %}
+ <ul class="pagination">
+ {% if BL_tmp.has_previous %}
+ <li><a href="?page={{ BL_tmp.previous_page_number }}">&laquo;</a></li>
+ {% else %}
+ <li class="disabled"><span>&laquo;</span></li>
+ {% endif %}
+ {% for i in BL_tmp.paginator.page_range %}
+ {% if BL_tmp.number == i %}
+ <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
+ {% else %}
+ <li><a href="?page={{ i }}">{{ i }}</a></li>
+ {% endif %}
+ {% endfor %}
+ {% if BL_tmp.has_next %}
+ <li><a href="?page={{ BL_tmp.next_page_number }}">&raquo;</a></li>
+ {% else %}
+ <li class="disabled"><span>&raquo;</span></li>
+ {% endif %}
+ </ul>
+{% endif %}
</div>
<div class="table-responsive">
<table class="table table-striped">
- {% include "includes/frontpage/new_logs" %}
- </table>
- </div>
-</div>
-<div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- <span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Repoman Logs On Packages</a>
- </h3>
- </div>
- <div class="table-responsive">
- <table class="table table-striped">
- {% include "includes/frontpage/new_repoman" %}
- </table>
- </div>
-</div>
-<div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">
- <span class="fa fa-fw fa-history"></span>
- <a href="/packages/added">New Qa Logs On Packages</a>
- </h3>
- </div>
- <div class="table-responsive">
- <table class="table table-striped">
- {% include "includes/frontpage/new_qa" %}
+ {% for BL in BL_tmp %}
+<tr>
+ <td>
+ <a href="/logs/build/{{ BL.BuildLogId }}/">
+ <span class="text-muted">{{ BL.C }}/</span>/<strong>{{ BL.P }}-{{ BL.V }}::{{ BL.R }}</strong>
+ </a>
+ </td>
+ <td>
+ <p title="{{ BL.SummeryText }}">{{ BL.SummeryText|truncatewords:5 }}</p>
+ {% if BL.Fail %}
+ {% if BL.FI.others %}
+ <span class="label label-info">Others</span>
+ {% else %}
+ {% if BL.FI.qa %}
+ <span class="label label-warning">
+ {% else %}
+ <span class="label label-success">
+ {% endif %}
+ Qa</span>
+ {% if BL.FI.repoman %}
+ <span class="label label-warning">
+ {% else %}
+ <span class="label label-success">
+ {% endif %}
+ Repoman</span>
+ {% if BL.FI.TestRun %}
+ {% if BL.FI.test %}
+ <span class="label label-danger">
+ {% else %}
+ <span class="label label-success">
+ {% endif %}
+ Test</span>
+ {% endif %}
+ {% if BL.FI.build %}
+ <span class="label label-danger">{{ BL.FI.builderror }}
+ {% else %}
+ <span class="label label-success">Build
+ {% endif %}
+ </span>
+ {% endif %}
+ {% else %}
+ <span class="label label-success">Ok</span>
+ {% endif %}
+ </td>
+</tr>
+{% endfor %}
</table>
</div>
</div>
+{% if BL_tmp.has_other_pages %}
+ <ul class="pagination">
+ {% if BL_tmp.has_previous %}
+ <li><a href="?page={{ BL_tmp.previous_page_number }}">&laquo;</a></li>
+ {% else %}
+ <li class="disabled"><span>&laquo;</span></li>
+ {% endif %}
+ {% for i in BL_tmp.paginator.page_range %}
+ {% if BL_tmp.number == i %}
+ <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
+ {% else %}
+ <li><a href="?page={{ i }}">{{ i }}</a></li>
+ {% endif %}
+ {% endfor %}
+ {% if BL_tmp.has_next %}
+ <li><a href="?page={{ BL_tmp.next_page_number }}">&raquo;</a></li>
+ {% else %}
+ <li class="disabled"><span>&raquo;</span></li>
+ {% endif %}
+ </ul>
+{% endif %}
{% endblock %}