diff --git a/app/dashboard/static/js/app/utils/init.js b/app/dashboard/static/js/app/utils/init.js index 977bb8871..2676264ab 100644 --- a/app/dashboard/static/js/app/utils/init.js +++ b/app/dashboard/static/js/app/utils/init.js @@ -51,13 +51,13 @@ define([ } function setHotKeys() { - var goToBoot, - goToBuild, + var goToBuild, goToCompare, goToHome, goToInfo, goToJob, goToSoc, + goToTest, selectSearch, selectTableLength, showHelp; @@ -78,8 +78,8 @@ define([ window.location = document.getElementById('build-l').href; }; - goToBoot = function() { - window.location = document.getElementById('boot-l').href; + goToTest = function() { + window.location = document.getElementById('tests-l').href; }; goToSoc = function() { @@ -114,7 +114,7 @@ define([ $.mapHotKeys.createSequence('g', 'o', $(document), goToHome), $.mapHotKeys.createSequence('g', 'j', $(document), goToJob), $.mapHotKeys.createSequence('g', 'b', $(document), goToBuild), - $.mapHotKeys.createSequence('g', 't', $(document), goToBoot), + $.mapHotKeys.createSequence('g', 't', $(document), goToTest), $.mapHotKeys.createSequence('g', 's', $(document), goToSoc), $.mapHotKeys.createSequence('g', 'c', $(document), goToCompare), $.mapHotKeys.createSequence('g', 'i', $(document), goToInfo) diff --git a/app/dashboard/static/js/app/view-info-faq.2017.3.3.js b/app/dashboard/static/js/app/view-info.2021.03.js similarity index 100% rename from app/dashboard/static/js/app/view-info-faq.2017.3.3.js rename to app/dashboard/static/js/app/view-info.2021.03.js diff --git a/app/dashboard/static/js/build.js b/app/dashboard/static/js/build.js index ad6cdc828..d10309f0b 100644 --- a/app/dashboard/static/js/build.js +++ b/app/dashboard/static/js/build.js @@ -67,6 +67,7 @@ 'app/view-builds-job-kernel-defconfig': 'app/view-builds-job-kernel-defconfig.2017.3.3', 'app/view-builds-job-kernel-defconfig-logs': 'app/view-builds-job-kernel-defconfig-logs.2020.6', 'app/view-index': 'app/view-index.2017.3.3', + 'app/view-info': 'app/view-info.2021.03', 'app/view-jobs-all': 'app/view-jobs-all.2020.10', 'app/view-jobs-job': 'app/view-jobs-job.2020.10', 'app/view-jobs-job-branch': 'app/view-jobs-job-branch.2020.10', @@ -102,6 +103,7 @@ {name: 'app/view-builds-job-kernel-defconfig-logs.2020.6'}, {name: 'app/view-builds-job-kernel-defconfig.2017.3.3'}, {name: 'app/view-index.2017.3.3'}, + {name: 'app/view-info.2021.03'}, {name: 'app/view-jobs-all.2020.10'}, {name: 'app/view-jobs-job-branch.2020.10'}, {name: 'app/view-jobs-job.2020.10'}, @@ -121,6 +123,7 @@ {name: 'kci-builds-job-kernel-defconfig'}, {name: 'kci-builds-job-kernel-defconfig-logs'}, {name: 'kci-index'}, + {name: 'kci-info'}, {name: 'kci-jobs-all'}, {name: 'kci-jobs-job'}, {name: 'kci-jobs-job-branch'}, diff --git a/app/dashboard/static/js/common.js b/app/dashboard/static/js/common.js index ae4ec5b1f..efbb25c57 100644 --- a/app/dashboard/static/js/common.js +++ b/app/dashboard/static/js/common.js @@ -64,6 +64,7 @@ require.config({ 'app/view-builds-job-kernel-defconfig': 'app/view-builds-job-kernel-defconfig.2017.3.3', 'app/view-builds-job-kernel-defconfig-logs': 'app/view-builds-job-kernel-defconfig-logs.2020.6', 'app/view-index': 'app/view-index.2017.3.3', + 'app/view-info': 'app/view-info.2021.03', 'app/view-jobs-all': 'app/view-jobs-all.2020.10', 'app/view-jobs-job': 'app/view-jobs-job.2020.10', 'app/view-jobs-job-branch': 'app/view-jobs-job-branch.2020.10', diff --git a/app/dashboard/static/js/kci-info.js b/app/dashboard/static/js/kci-info.js new file mode 100644 index 000000000..55364e5ea --- /dev/null +++ b/app/dashboard/static/js/kci-info.js @@ -0,0 +1,24 @@ +/*! +* kernelci dashboard. +* +* Copyright (C) 2014, 2015, 2016, 2017 Linaro Ltd. +* +* This program is free software; you can redistribute it and/or modify it under +* the terms of the GNU Lesser General Public License as published by the Free +* Software Foundation; either version 2.1 of the License, or (at your option) +* any later version. +* +* This program is distributed in the hope that it will be useful, but WITHOUT +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +* details. +* +* You should have received a copy of the GNU Lesser General Public License +* along with this library; if not, write to the Free Software Foundation, Inc., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +require(['common'], function() { + 'use strict'; + require(['app/view-info']); +}); diff --git a/app/dashboard/templates/hotkeys.html b/app/dashboard/templates/hotkeys.html index bfbc6989a..3ecc90bfc 100644 --- a/app/dashboard/templates/hotkeys.html +++ b/app/dashboard/templates/hotkeys.html @@ -28,18 +28,13 @@