From 35c34c690ae9616d791c39fa218fe1621fa8d8d2 Mon Sep 17 00:00:00 2001 From: maxbr Date: Fri, 29 Jul 2016 12:43:43 +0200 Subject: import pharos dashboard code JIRA: RELENG-12 The last commit was missing some JS/CSS dependencies of the site. This happened because they are in folders that are named 'build' or 'dist'. This commit adds a bower.json file, that specifies dependencies. Dependencies can now be installed by running 'bower install' in the dashboard/static folder. Change-Id: I054f319c66771f767e97711cb678d79d3bd6bee4 Signed-off-by: maxbr --- .../pharos-dashboard/templates/tables/ci_pods.html | 59 ++++++++++++++++++++++ .../templates/tables/dev_pods.html | 58 +++++++++++++++++++++ .../templates/tables/jenkins_slaves.html | 42 +++++++++++++++ 3 files changed, 159 insertions(+) create mode 100644 tools/pharos-dashboard/templates/tables/ci_pods.html create mode 100644 tools/pharos-dashboard/templates/tables/dev_pods.html create mode 100644 tools/pharos-dashboard/templates/tables/jenkins_slaves.html (limited to 'tools/pharos-dashboard/templates/tables') diff --git a/tools/pharos-dashboard/templates/tables/ci_pods.html b/tools/pharos-dashboard/templates/tables/ci_pods.html new file mode 100644 index 00000000..3889664b --- /dev/null +++ b/tools/pharos-dashboard/templates/tables/ci_pods.html @@ -0,0 +1,59 @@ +{% extends "dashboard/table.html" %} +{% load staticfiles %} + +{% block table %} + + + Name + Slave Name + Status + Installer + Scenario + Branch + Job + + + + {% for pod in ci_pods %} + + + {{ pod.name }} + + + {{ pod.slavename }} + + + {{ pod.status }} + + + {{ pod.last_job.installer }} + + + {{ pod.last_job.scenario }} + + + {{ pod.last_job.branch }} + + {{ pod.last_job.name }} + + + {% endfor %}` + + +{% endblock table %} + + +{% block tablejs %} + +{% endblock tablejs %} \ No newline at end of file diff --git a/tools/pharos-dashboard/templates/tables/dev_pods.html b/tools/pharos-dashboard/templates/tables/dev_pods.html new file mode 100644 index 00000000..730aa953 --- /dev/null +++ b/tools/pharos-dashboard/templates/tables/dev_pods.html @@ -0,0 +1,58 @@ +{% extends "dashboard/table.html" %} +{% load staticfiles %} + +{% block table %} + + + Name + Slave Name + Booked by + Booked until + Purpose + Status + + + + + {% for pod in dev_pods %} + + + {{ pod.name }} + + + {{ pod.slavename }} + + + {{ pod.current_booking.user }} + + + {{ pod.current_booking.end_date_time }} + + + {{ pod.current_booking.purpose }} + + + {{ pod.status }} + + + + Book + + + + {% endfor %} + +{% endblock table %} + +{% block tablejs %} + +{% endblock tablejs %} \ No newline at end of file diff --git a/tools/pharos-dashboard/templates/tables/jenkins_slaves.html b/tools/pharos-dashboard/templates/tables/jenkins_slaves.html new file mode 100644 index 00000000..2d011b46 --- /dev/null +++ b/tools/pharos-dashboard/templates/tables/jenkins_slaves.html @@ -0,0 +1,42 @@ +{% extends "dashboard/table.html" %} +{% load staticfiles %} + +{% block table %} + + + Slave name + Status + Job + + + + {% for slave in slaves %} + + {{ slave.displayName }} + + + {{ slave.status }} + + + {{ slave.last_job.name }} + + + {% endfor %} + +{% endblock table %} + + +{% block tablejs %} + +{% endblock tablejs %} \ No newline at end of file -- cgit 1.2.3-korg