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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
924fc3b1
Commit
924fc3b1
authored
Feb 07, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Display appropriate informations about Software Installations on Computers view
parent
327bae76
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
789 additions
and
4 deletions
+789
-4
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
...page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
+12
-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_slapos_software_release_info_html.html
..._module/rjs_gadget_slapos_software_release_info_html.html
+18
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_html.xml
...e_module/rjs_gadget_slapos_software_release_info_html.xml
+324
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_js.js
...page_module/rjs_gadget_slapos_software_release_info_js.js
+41
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_js.xml
...age_module/rjs_gadget_slapos_software_release_info_js.xml
+320
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getSoftwareReleaseInformation.py
...yle/SoftwareInstallation_getSoftwareReleaseInformation.py
+6
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getSoftwareReleaseInformation.xml
...le/SoftwareInstallation_getSoftwareReleaseInformation.xml
+62
-0
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
...jio/bt/template_keep_last_workflow_history_only_path_list
+2
-0
master/bt5/slapos_jio/bt/template_path_list
master/bt5/slapos_jio/bt/template_path_list
+2
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
View file @
924fc3b1
...
...
@@ -39,6 +39,16 @@
title
:
"
Status
"
,
type
:
"
GadgetField
"
};
result
.
data
.
rows
[
i
].
value
.
software_release
=
{
css_class
:
""
,
description
:
"
Software Release Info
"
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
},
key
:
"
software_release
"
,
url
:
"
gadget_slapos_software_release_info.html
"
,
title
:
"
Software Release Info
"
,
type
:
"
GadgetField
"
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
...
...
@@ -104,8 +114,8 @@
form_gadget
=
results
[
0
],
computer_network_list
=
[[
""
,
""
]],
column_list
=
[
[
'
software_
titl
e
'
,
'
Software Release
'
],
[
'
reference
'
,
'
Reference
'
],
[
'
software_
releas
e
'
,
'
Software Release
'
],
[
'
url_string
'
,
'
Url
'
],
[
'
monitoring_status
'
,
'
Status
'
]
],
ticket_column_list
=
[
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
View file @
924fc3b1
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
4.7016.54864.20531
</string>
</value>
<value>
<string>
96
5.22323.37519.26163
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
151
4293807.46
</float>
<float>
151
8025231.58
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_html.html
0 → 100644
View file @
924fc3b1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Background
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"handlebars.js"
></script>
<script
src=
"gadget_slapos_software_release_info.js"
></script>
</head>
<body>
<button
data-i18n=
"loading"
type=
"submit"
class=
"responsive ui-btn ui-icon-spinner ui-icon-spin ui-btn-icon-center ui-disabled"
style=
"border:none;"
>
loading
</button>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_html.xml
0 → 100644
View file @
924fc3b1
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_js.js
0 → 100644
View file @
924fc3b1
/*globals console, window, rJS, RSVP, loopEventListener, i18n, Handlebars $*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
gadget_klass
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareMethod
(
"
getContent
"
,
function
()
{
return
{};
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
getElement
(),
gadget
.
getSetting
(
"
hateoas_url
"
)
]);
})
.
push
(
function
(
result
)
{
var
hateoas_url
=
result
[
1
],
element
=
result
[
0
];
return
gadget
.
jio_getAttachment
(
options
.
value
.
jio_key
,
hateoas_url
+
options
.
value
.
jio_key
+
"
/SoftwareInstallation_getSoftwareReleaseInformation
"
)
.
push
(
function
(
info
)
{
console
.
log
(
info
);
element
.
innerHTML
=
info
;
return
info
;
});
});
});
}(
window
,
rJS
,
RSVP
,
Handlebars
));
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_software_release_info_js.xml
0 → 100644
View file @
924fc3b1
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getSoftwareReleaseInformation.py
0 → 100644
View file @
924fc3b1
import
json
software_release
=
context
.
portal_catalog
.
getResultValue
(
url_string
=
{
'query'
:
context
.
getUrlString
(),
'key'
:
'ExactMatch'
},
portal_type
=
'Software Release'
)
return
json
.
dumps
(
"%s (%s)"
%
(
software_release
.
getTitle
(),
software_release
.
getVersion
()))
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstallation_getSoftwareReleaseInformation.xml
0 → 100644
View file @
924fc3b1
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstallation_getSoftwareReleaseInformation
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
View file @
924fc3b1
...
...
@@ -7,6 +7,8 @@ web_page_module/rjs_gadget_slapos_appcache
web_page_module/rjs_gadget_erp5_page_map_js
web_page_module/rjs_gadget_erp5_page_slap_intent_js
web_page_module/rjs_gadget_erp5_page_slap_intent_html
web_page_module/rjs_gadget_slapos_software_release_info_js
web_page_module/rjs_gadget_slapos_software_release_info_html
web_page_module/rjs_gadget_erp5_page_slap_add_computer_html
web_page_module/rjs_gadget_erp5_page_slap_add_computer_js
web_page_module/rjs_gadget_erp5_page_slap_add_hosting_subscription_html
...
...
master/bt5/slapos_jio/bt/template_path_list
View file @
924fc3b1
...
...
@@ -134,6 +134,8 @@ web_page_module/rjs_gadget_slapos_project_status_html
web_page_module/rjs_gadget_slapos_project_status_js
web_page_module/rjs_gadget_slapos_site_status_html
web_page_module/rjs_gadget_slapos_site_status_js
web_page_module/rjs_gadget_slapos_software_release_info_html
web_page_module/rjs_gadget_slapos_software_release_info_js
web_page_module/rjs_leaflet_css
web_page_module/rjs_leaflet_js
web_page_module/rjs_tv4_min_js
...
...
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