From 176188d16eab0a8c56537c2c6d119a6807f47999 Mon Sep 17 00:00:00 2001 From: maxbr Date: Mon, 19 Sep 2016 10:10:54 +0200 Subject: Fix table HTML JIRA: RELENG-12 Change-Id: I780c1fc0daab9ee2f2599c51f31eb416a2c7dbbf Signed-off-by: maxbr --- pharos-dashboard/static/js/flot-pie-chart.js | 12 +++----- pharos-dashboard/templates/account/user_list.html | 26 +++++++++------- .../templates/booking/booking_table.html | 20 ++++++------ pharos-dashboard/templates/dashboard/ci_pods.html | 28 ++++++++--------- pharos-dashboard/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/pharos-dashboard/static/js/flot-pie-chart.js b/pharos-dashboard/static/js/flot-pie-chart.js index 98d174e..cf8d976 100644 --- a/pharos-dashboard/static/js/flot-pie-chart.js +++ b/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/pharos-dashboard/templates/account/user_list.html b/pharos-dashboard/templates/account/user_list.html index 7618dc9..c2b8193 100644 --- a/pharos-dashboard/templates/account/user_list.html +++ b/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/pharos-dashboard/templates/booking/booking_table.html b/pharos-dashboard/templates/booking/booking_table.html index 3d0b757..216eaf5 100644 --- a/pharos-dashboard/templates/booking/booking_table.html +++ b/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/pharos-dashboard/templates/dashboard/ci_pods.html b/pharos-dashboard/templates/dashboard/ci_pods.html index a754252..7ef62a4 100644 --- a/pharos-dashboard/templates/dashboard/ci_pods.html +++ b/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/pharos-dashboard/templates/dashboard/dev_pods.html b/pharos-dashboard/templates/dashboard/dev_pods.html index c4cb1ba..2b4b017 100644 --- a/pharos-dashboard/templates/dashboard/dev_pods.html +++ b/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/pharos-dashboard/templates/dashboard/jenkins_slaves.html b/pharos-dashboard/templates/dashboard/jenkins_slaves.html index 830ed19..aa74507 100644 --- a/pharos-dashboard/templates/dashboard/jenkins_slaves.html +++ b/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/pharos-dashboard/templates/dashboard/resource_detail.html b/pharos-dashboard/templates/dashboard/resource_detail.html index 6067e1e..657d565 100644 --- a/pharos-dashboard/templates/dashboard/resource_detail.html +++ b/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/pharos-dashboard/templates/dashboard/server_table.html b/pharos-dashboard/templates/dashboard/server_table.html index fee7e8b..f01bd60 100644 --- a/pharos-dashboard/templates/dashboard/server_table.html +++ b/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 -- cgit 1.2.3-korg