From 3f96bdbe6542c2600def600514d577aea351ff3d Mon Sep 17 00:00:00 2001 From: maxbr Date: Mon, 19 Sep 2016 10:10:54 +0200 Subject: [PATCH] Fix table HTML JIRA: RELENG-12 Change-Id: I780c1fc0daab9ee2f2599c51f31eb416a2c7dbbf Signed-off-by: maxbr --- tools/pharos-dashboard/static/js/flot-pie-chart.js | 12 +++----- .../templates/account/user_list.html | 26 +++++++++------- .../templates/booking/booking_table.html | 20 ++++++------ .../templates/dashboard/ci_pods.html | 28 ++++++++--------- .../templates/dashboard/dev_pods.html | 36 +++++++++++----------- .../templates/dashboard/jenkins_slaves.html | 12 ++++---- .../templates/dashboard/resource_detail.html | 12 ++++---- .../templates/dashboard/server_table.html | 20 ++++++------ 8 files changed, 84 insertions(+), 82 deletions(-) diff --git a/tools/pharos-dashboard/static/js/flot-pie-chart.js b/tools/pharos-dashboard/static/js/flot-pie-chart.js index 98d174e4..cf8d9769 100644 --- a/tools/pharos-dashboard/static/js/flot-pie-chart.js +++ b/tools/pharos-dashboard/static/js/flot-pie-chart.js @@ -4,14 +4,12 @@ function loadChartData(chart_id, url) { type: 'get', success: function (data) { var data = data['data']; - $(function () { - var plotObj = $.plot($("#" + chart_id), data, { - series: { - pie: { - show: true - } + var plotObj = $.plot($("#" + chart_id), data, { + series: { + pie: { + show: true } - }); + } }); }, failure: function (data) { diff --git a/tools/pharos-dashboard/templates/account/user_list.html b/tools/pharos-dashboard/templates/account/user_list.html index 7618dc95..c2b81938 100644 --- a/tools/pharos-dashboard/templates/account/user_list.html +++ b/tools/pharos-dashboard/templates/account/user_list.html @@ -13,18 +13,22 @@ {% for user in users %} - + {{ user.username }} - - + + {{ user.userprofile.company }} - - - Download - - - Download - + + + {% if user.userprofile.ssh_public_key %} + SSH + {% endif %} + + + {% if user.userprofile.pgp_public_key %} + GPG + {% endif %} + {% endfor %} @@ -39,4 +43,4 @@ }); }); -{% endblock tablejs %} \ No newline at end of file +{% endblock tablejs %} diff --git a/tools/pharos-dashboard/templates/booking/booking_table.html b/tools/pharos-dashboard/templates/booking/booking_table.html index 3d0b7575..216eaf57 100644 --- a/tools/pharos-dashboard/templates/booking/booking_table.html +++ b/tools/pharos-dashboard/templates/booking/booking_table.html @@ -13,21 +13,21 @@ {% for booking in bookings %} - + {{ booking.user.username }} - - + + {{ booking.purpose }} - - + + {{ booking.start }} - - + + {{ booking.end }} - - + {{ booking.get_jira_issue }} - + {% endfor %} \ No newline at end of file diff --git a/tools/pharos-dashboard/templates/dashboard/ci_pods.html b/tools/pharos-dashboard/templates/dashboard/ci_pods.html index a754252c..7ef62a43 100644 --- a/tools/pharos-dashboard/templates/dashboard/ci_pods.html +++ b/tools/pharos-dashboard/templates/dashboard/ci_pods.html @@ -17,29 +17,29 @@ {% for pod in ci_pods %} - + {{ pod.name }} - - + + {{ pod.slave.name }} - - + + {{ pod.slave.status }} - - + + {{ pod.slave.last_job_installer }} - - + + {{ pod.slave.last_job_scenario }} - - + + {{ pod.slave.last_job_branch }} - - + {{ pod.slave.last_job_name }} - + {% endfor %} diff --git a/tools/pharos-dashboard/templates/dashboard/dev_pods.html b/tools/pharos-dashboard/templates/dashboard/dev_pods.html index c4cb1ba7..2b4b0177 100644 --- a/tools/pharos-dashboard/templates/dashboard/dev_pods.html +++ b/tools/pharos-dashboard/templates/dashboard/dev_pods.html @@ -19,37 +19,37 @@ {% for pod, booking, utilization in dev_pods %} - + {{ pod.name }} - - + + {{ pod.slave.name }} - - + + {{ booking.user.username }} - - + + {{ booking.end }} - - + + {{ booking.purpose }} - - + + {{ utilization }} - - + + {{ pod.slave.status }} - - + + Book - - + + Info - + {% endfor %} diff --git a/tools/pharos-dashboard/templates/dashboard/jenkins_slaves.html b/tools/pharos-dashboard/templates/dashboard/jenkins_slaves.html index 830ed198..aa74507c 100644 --- a/tools/pharos-dashboard/templates/dashboard/jenkins_slaves.html +++ b/tools/pharos-dashboard/templates/dashboard/jenkins_slaves.html @@ -14,17 +14,17 @@ {% for slave in slaves %} - {{ slave.name }} - - + + {{ slave.status }} - - + {{ slave.last_job_name }} - + {% endfor %} diff --git a/tools/pharos-dashboard/templates/dashboard/resource_detail.html b/tools/pharos-dashboard/templates/dashboard/resource_detail.html index 6067e1ea..657d5656 100644 --- a/tools/pharos-dashboard/templates/dashboard/resource_detail.html +++ b/tools/pharos-dashboard/templates/dashboard/resource_detail.html @@ -164,15 +164,15 @@ {% for user in resource.vpn_users.all %} - + {{ user.username }} - - + + {{ user.email }} - - + + {{ user.userprofile.company }} - + {% endfor %} diff --git a/tools/pharos-dashboard/templates/dashboard/server_table.html b/tools/pharos-dashboard/templates/dashboard/server_table.html index fee7e8b1..f01bd603 100644 --- a/tools/pharos-dashboard/templates/dashboard/server_table.html +++ b/tools/pharos-dashboard/templates/dashboard/server_table.html @@ -10,21 +10,21 @@ {% for server in resource.server_set.all %} - + {{ server.name }} - - + + {{ server.model }} - - + + {{ server.cpu }} - - + + {{ server.ram }} - - + + {{ server.storage }} - + {% endfor %} \ No newline at end of file -- 2.16.6