aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 16:43:37 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 16:43:37 +0100
commitf7f748a605ec6854d9f5603f44dc7fb7158c2ce7 (patch)
tree27c592978b9602300dd2882c944e9218bc7f6717
parentaf718a880bcd6a12337868c1703773d6b646e821 (diff)
Bump JS version number.
Change-Id: Id1f0778f9694a30fd876b4a2a7ea904733dc8b53
-rw-r--r--app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.6.js (renamed from app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.5.js)0
-rw-r--r--app/dashboard/templates/builds-job-kernel-defconf.html58
2 files changed, 6 insertions, 52 deletions
diff --git a/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.5.js b/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.6.js
index 6029302..6029302 100644
--- a/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.5.js
+++ b/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.6.js
diff --git a/app/dashboard/templates/builds-job-kernel-defconf.html b/app/dashboard/templates/builds-job-kernel-defconf.html
index afab512..0e0c45c 100644
--- a/app/dashboard/templates/builds-job-kernel-defconf.html
+++ b/app/dashboard/templates/builds-job-kernel-defconf.html
@@ -164,56 +164,10 @@
<input type="hidden" id="job-name" value="{{ job_name }}">
<input type="hidden" id="kernel-name" value="{{ kernel_name }}">
<input type="hidden" id="defconfig-full" value="{{ defconfig_full }}">
-<input type="hidden" id="defconfig-id" value="{{ defconfig_id }}"> {%- endblock %} {%- block scripts %} {{ super() }}
-<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/URI.js/1.11.2/URI.min.js"></script>
-<script type="text/javascript">
-function translateCommitURL(commitURL, commitId) {
- 'use strict';
-
- var uriParser,
- hostName,
- knownGit,
- baseURL = '',
- urlPath,
- newCommitURL = '',
- translateRule,
- lenTranslate,
- i,
- urlTranslation = {{ url_translation|tojson|safe }};
-
- if (commitURL !== null && commitId !== null) {
- uriParser = new URI(commitURL);
- hostName = uriParser.hostname();
- urlPath = uriParser.path();
-
- if (urlTranslation.hasOwnProperty(hostName)) {
- knownGit = urlTranslation[hostName];
- translateRule = knownGit[3];
- lenTranslate = translateRule.length;
-
- for (i = 0; i < lenTranslate; i++) {
- urlPath = urlPath.replace(
- translateRule[i][0], translateRule[i][1]);
- }
-
- baseURL = new URI({
- protocol: knownGit[0],
- hostname: hostName,
- path: knownGit[1].replace('%s', urlPath)
- });
-
- newCommitURL = new URI({
- protocol: knownGit[0],
- hostname: hostName,
- path: knownGit[2].replace('%s', urlPath) + commitId
- });
-
- baseURL = baseURL.href();
- newCommitURL = newCommitURL.href();
- }
- }
- return [baseURL, newCommitURL];
-}
-</script>
-<script type="text/javascript" src="/static/js/linaro-builds-job-kernel-defconfig-1.0.5.js"></script>
+<input type="hidden" id="defconfig-id" value="{{ defconfig_id }}">
+{# Beware the single quotes on this variable! #}
+<input type="hidden" id="url-translation" value='{{ url_translation|tojson|safe }}'>
+{%- endblock %} {%- block scripts %}
+{{ super() }}
+<script type="text/javascript" src="/static/js/linaro-builds-job-kernel-defconfig-1.0.6.js"></script>
{%- endblock %}