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
068bc8e4
Commit
068bc8e4
authored
Mar 11, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: minor changes for demo
parent
ae60423b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
bt5/erp5_web_project_ui/PathTemplateItem/web_page_module/project_gadget_page_project_front_page_js.js
..._page_module/project_gadget_page_project_front_page_js.js
+17
-12
bt5/erp5_web_project_ui/PathTemplateItem/web_page_module/project_gadget_page_project_front_page_js.xml
...page_module/project_gadget_page_project_front_page_js.xml
+2
-2
No files found.
bt5/erp5_web_project_ui/PathTemplateItem/web_page_module/project_gadget_page_project_front_page_js.js
View file @
068bc8e4
...
...
@@ -23,7 +23,10 @@
// Where to define/get the limit date? by portal_type or the same for all documents?
//date ISO string format: "yyyy-mm-ddThh:mm:ss.mmmm"
//JIO query date format: "yyyy-mm-dd hh:mm:ss"
LIMIT_DATE
=
new
Date
(
new
Date
().
setFullYear
(
new
Date
().
getFullYear
()
-
1
))
//FOR DEMO
/*LIMIT_DATE = new Date(new Date().setFullYear(new Date().getFullYear() - 1))
.toISOString().substring(0, new Date().toISOString().length - 5).replace("T", " "),*/
LIMIT_DATE
=
new
Date
(
2019
,
11
,
19
,
10
,
33
,
30
,
0
)
.
toISOString
().
substring
(
0
,
new
Date
().
toISOString
().
length
-
5
).
replace
(
"
T
"
,
"
"
),
NOW_DATE
=
new
Date
().
toISOString
().
substring
(
0
,
new
Date
().
toISOString
().
length
-
5
).
replace
(
"
T
"
,
"
"
),
//XXX hardcoded portal_types, states and titles dict
...
...
@@ -225,7 +228,9 @@
query
:
project_query
,
limit
:
QUERY_LIMIT
,
select_list
:
[
'
title
'
,
'
source_decision_title
'
],
sort_on
:
[[
"
title
"
,
"
ascending
"
]]
//FOR DEMO
//sort_on: [["title", "ascending"]],
sort_on
:
[[
"
modification_date
"
,
"
ascending
"
]]
})
.
push
(
function
(
result
)
{
return
result
.
data
.
rows
;
...
...
@@ -424,15 +429,15 @@
getUrlParameterDict
(
'
task_module
'
,
"
view
"
,
[[
"
delivery.start_date
"
,
"
descending
"
]],
[
"
title
"
,
"
delivery.start_date
"
,
"
source_title
"
],
[
"
title
"
,
"
delivery.start_date
"
,
"
source_title
"
,
"
translated_simulation_state_title
"
],
createProjectQuery
(
project_list
[
i
].
id
,
[[
"
selection_domain_state_task_domain
"
,
"
confirm
ed
"
]]))
[[
"
selection_domain_state_task_domain
"
,
"
open
ed
"
]]))
);
task_report_url_list
.
push
(
getUrlParameterDict
(
'
task_report_module
'
,
'
view
'
,
[[
"
delivery.start_date
"
,
"
descending
"
]],
[
"
title
"
,
"
delivery.start_date
"
,
"
source_title
"
],
[
"
title
"
,
"
delivery.start_date
"
,
"
source_title
"
,
"
translated_simulation_state_title
"
],
createProjectQuery
(
project_list
[
i
].
id
,
[[
"
selection_domain_state_task_report_domain
"
,
"
confirmed
"
]]))
);
...
...
@@ -440,7 +445,8 @@
getUrlParameterDict
(
'
bug_module
'
,
"
view
"
,
[[
"
delivery.start_date
"
,
"
descending
"
]],
[
"
title
"
,
"
description
"
,
"
source_person_title
"
,
"
destination_person_title
"
,
"
delivery.start_date
"
],
[
"
title
"
,
"
description
"
,
"
source_person_title
"
,
"
destination_person_title
"
,
"
delivery.start_date
"
,
"
translated_simulation_state_title
"
],
createProjectQuery
(
project_list
[
i
].
id
,
[[
"
selection_domain_state_bug_domain
"
,
"
open
"
]]))
);
...
...
@@ -547,8 +553,6 @@
})
.
declareJob
(
"
renderOtdatedMilestoneInfo
"
,
function
()
{
//XXX For testing -> use NOW_DATE
return
renderMilestoneLines
(
this
,
NOW_DATE
);
return
renderMilestoneLines
(
this
,
LIMIT_DATE
);
})
...
...
@@ -557,8 +561,6 @@
})
.
declareJob
(
"
renderOutdatedDocumentInfo
"
,
function
()
{
//XXX For testing -> use NOW_DATE
//return renderProjectDocumentLines(this, NOW_DATE);
return
renderProjectDocumentLines
(
this
,
LIMIT_DATE
);
})
...
...
@@ -614,8 +616,11 @@
FORUM_LINK_ID_SUFFIX
,
true
)
);
if
(
forum_link_html
)
{
forum_link_html
.
href
=
forum_link_list
[
i
].
value
.
url_string
;
forum_link_html
.
innerHTML
=
forum_link_list
[
i
].
value
.
title
;
//forum_link_html.href = forum_link_list[i].value.url_string;
//forum_link_html.innerHTML = forum_link_list[i].value.title;
//HARDCODED FOR DEMO
forum_link_html
.
href
=
"
https://www.erp5.com/group_section/forum
"
;
forum_link_html
.
innerHTML
=
"
forum link
"
;
forum_link_html
.
classList
.
remove
(
"
ui-hidden
"
);
}
}
...
...
bt5/erp5_web_project_ui/PathTemplateItem/web_page_module/project_gadget_page_project_front_page_js.xml
View file @
068bc8e4
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
982.2
8740.63233.16213
</string>
</value>
<value>
<string>
982.2
9590.9365.35601
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
1583
873586.77
</float>
<float>
1583
924710.12
</float>
<string>
UTC
</string>
</tuple>
</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