Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
a9cc0a0e
Commit
a9cc0a0e
authored
Apr 03, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Fix Site/Project/Network view when invoke Computer Status Gadget
The initial "news" information is passed as parameter
parent
1aabfe3f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
26 deletions
+29
-26
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.js
...ule/rjs_gadget_erp5_page_slap_computer_network_view_js.js
+7
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.xml
...le/rjs_gadget_erp5_page_slap_computer_network_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
...age_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_organisation_view_js.js
..._module/rjs_gadget_erp5_page_slap_organisation_view_js.js
+7
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_organisation_view_js.xml
...module/rjs_gadget_erp5_page_slap_organisation_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_project_view_js.js
..._page_module/rjs_gadget_erp5_page_slap_project_view_js.js
+7
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_project_view_js.xml
...page_module/rjs_gadget_erp5_page_slap_project_view_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.js
View file @
a9cc0a0e
...
@@ -25,16 +25,17 @@
...
@@ -25,16 +25,17 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
hasOwnProperty
(
"
id
"
)))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
Computer_getNewsDict
"
)))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
computer_monitoring_status
=
{
value
=
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
},
"
default
"
:
{
jio_key
:
value
,
result
:
value
},
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -92,7 +93,7 @@
...
@@ -92,7 +93,7 @@
[
'
title
'
,
'
Title
'
],
[
'
title
'
,
'
Title
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
allocation_scope_translated_title
'
,
'
Allocation Scope
'
],
[
'
allocation_scope_translated_title
'
,
'
Allocation Scope
'
],
[
'
computer_monitoring_status
'
,
'
Status
'
]
[
'
Computer_getNewsDict
'
,
'
Status
'
]
];
];
return
form_gadget
.
render
({
return
form_gadget
.
render
({
erp5_document
:
{
erp5_document
:
{
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_network_view_js.xml
View file @
a9cc0a0e
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
2.34309.59418.7099
</string>
</value>
<value>
<string>
97
4.29154.30429.60091
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
155
2959507.85
</float>
<float>
155
4310335.73
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
View file @
a9cc0a0e
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
2.38762.9625.45482
</string>
</value>
<value>
<string>
97
4.50679.18778.20650
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
45932477.94
</float>
<float>
15
54258070.92
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_organisation_view_js.js
View file @
a9cc0a0e
...
@@ -26,16 +26,17 @@
...
@@ -26,16 +26,17 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
hasOwnProperty
(
"
id
"
)))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
Computer_getNewsDict
"
)))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
computer_monitoring_status
=
{
value
=
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
},
"
default
"
:
{
jio_key
:
value
,
result
:
value
},
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -95,7 +96,7 @@
...
@@ -95,7 +96,7 @@
var
column_list
=
[
var
column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
title
'
,
'
Title
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
computer_monitoring_status
'
,
'
Status
'
]
[
'
Computer_getNewsDict
'
,
'
Status
'
]
];
];
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_organisation_view_js.xml
View file @
a9cc0a0e
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
2.34312.53410.25173
</string>
</value>
<value>
<string>
97
4.29134.59085.11229
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
155
2958334.0
9
</float>
<float>
155
4310309.8
9
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_project_view_js.js
View file @
a9cc0a0e
...
@@ -26,16 +26,17 @@
...
@@ -26,16 +26,17 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
hasOwnProperty
(
"
id
"
)))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
Computer_getNewsDict
"
)))
{
value
=
result
.
data
.
rows
[
i
].
id
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
computer_monitoring_status
=
{
value
=
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
;
result
.
data
.
rows
[
i
].
value
.
Computer_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
},
"
default
"
:
{
jio_key
:
value
,
result
:
value
},
key
:
"
status
"
,
key
:
"
status
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
url
:
"
gadget_slapos_computer_status.html
"
,
title
:
"
Status
"
,
title
:
"
Status
"
,
...
@@ -95,7 +96,7 @@
...
@@ -95,7 +96,7 @@
var
column_list
=
[
var
column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
title
'
,
'
Title
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
computer_monitoring_status
'
,
'
Status
'
]
[
'
Computer_getNewsDict
'
,
'
Status
'
]
];
];
return
result
[
0
].
render
({
return
result
[
0
].
render
({
erp5_document
:
{
erp5_document
:
{
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_project_view_js.xml
View file @
a9cc0a0e
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
2.34312.19568.358
</string>
</value>
<value>
<string>
97
4.29152.50153.14045
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -259,7 +259,7 @@
...
@@ -259,7 +259,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
155
2959405.91
</float>
<float>
155
4310275.02
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment