Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
144
Merge Requests
144
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0be2f6a9
Commit
0be2f6a9
authored
Jan 31, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: drop some project info gadget render parameters
parent
c69b5ad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview/my_info_gadget_field.xml
...roject/Project_viewQuickOverview/my_info_gadget_field.xml
+1
-1
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
...m/portal_skins/erp5_web_project/gadget_project_info.js.js
+7
-9
No files found.
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview/my_info_gadget_field.xml
View file @
0be2f6a9
...
...
@@ -253,7 +253,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: {"
project_title":here.getTitle(), "jio_key": here.getRelativeUrl(), "home_page_preference
": here.getPortalObject().portal_preferences.getPreferredPublicationSection() }
</string>
</value>
<value>
<string>
python: {"
jio_key": here.getRelativeUrl(), "publication_section
": here.getPortalObject().portal_preferences.getPreferredPublicationSection() }
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
View file @
0be2f6a9
...
...
@@ -33,8 +33,8 @@
return
view_list
.
filter
(
d
=>
d
.
name
===
name
)[
0
].
href
;
}
function
setLatestTestResult
(
gadget
,
project_title
,
svg_element
,
project_id
)
{
var
query
=
createProjectQuery
(
project_
id
,
function
setLatestTestResult
(
gadget
,
svg_element
,
project_jio_key
)
{
var
query
=
createProjectQuery
(
project_
jio_key
,
[[
"
portal_type
"
,
"
Test Result
"
]]);
return
gadget
.
jio_allDocs
({
query
:
query
,
...
...
@@ -111,7 +111,7 @@
}));
}
function
getWebPageInfo
(
gadget
,
project_jio_key
,
home_page_preference
)
{
function
getWebPageInfo
(
gadget
,
project_jio_key
,
publication_section
)
{
var
id
,
content
,
edit_view
,
...
...
@@ -152,7 +152,7 @@
key
:
"
publication_section__relative_url
"
,
operator
:
"
=
"
,
type
:
"
simple
"
,
value
:
"
publication_section/
"
+
home_page_preference
value
:
"
publication_section/
"
+
publication_section
}));
query
=
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
"
AND
"
,
...
...
@@ -210,8 +210,7 @@
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
state_dict
=
{
jio_key
:
options
.
jio_key
||
""
,
project_title
:
options
.
project_title
,
home_page_preference
:
options
.
home_page_preference
publication_section
:
options
.
publication_section
};
return
this
.
changeState
(
state_dict
);
})
...
...
@@ -223,7 +222,7 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
getWebPageInfo
(
gadget
,
modification_dict
.
jio_key
,
modification_dict
.
home_page_preference
),
getWebPageInfo
(
gadget
,
modification_dict
.
jio_key
,
modification_dict
.
publication_section
),
gadget
.
getDeclaredGadget
(
"
editor
"
),
gadget
.
getSetting
(
"
hateoas_url
"
)
]);
...
...
@@ -285,8 +284,7 @@
}
enableLink
(
document
.
getElementById
(
"
document_link
"
),
url_list
[
8
]);
enableLink
(
document
.
getElementById
(
"
activity_link
"
),
url_list
[
9
]);
setLatestTestResult
(
gadget
,
modification_dict
.
project_title
,
document
.
getElementById
(
"
test_result_svg
"
),
modification_dict
.
jio_key
);
setLatestTestResult
(
gadget
,
document
.
getElementById
(
"
test_result_svg
"
),
modification_dict
.
jio_key
);
});
})
...
...
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