Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 3aace351 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

more javascript

parent 7629282f
// Copyright (C) 2008, 2009, 2010 APC LPNHE CNRS Universite Paris Diderot <lejeune@apc.univ-paris7.fr> <betoule@apc.univ-paris7.fr>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, see http://www.gnu.org/licenses/gpl.html
function confirmation(url) {
check = confirm("Are you sure ?");
if (check == true) {
self.location.href=url;
}
}
function edit_tag(url) {
var check = prompt("Select an existing tag among: \n - tag1\n - tag2\n or set a new tag for this pipe","tag1");
if (check!=null) {
self.location.href=url+check;
}
}
......@@ -31,6 +31,7 @@ html_tmp = """
<head>
<SCRIPT SRC="/static/mktree.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/static/cook.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/static/tag.js" LANGUAGE="JavaScript"></SCRIPT>
<LINK REL="stylesheet" HREF="/static/mktree.css">
</head><body>
"""
......@@ -98,7 +99,7 @@ class Web:
print s
for stat in e:
ss = '<a href="product?segid=%s&status=%s" class=%s>%d</a>, '%(s[2],stat[0], stat[0], stat[1]) + ss
ss += '<a href="delseg?segid=%d"> (delete) </a>'%s[2]
ss += '<a href="javascript:confirmation(\'delseg?segid=%d\')"> (delete)</a><spacer> <a href="javascript:edit_tag(\'tag?segid=%d\')"> (tag)</a>'%(s[2],s[2])
diff = s[1].count('/') - indent
if diff == 1:
html += '<ul> <li id=%d ><a href="code?segid=%d">%s</a> : %s\n'%(s[2],s[2],s[0],ss)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment