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
6c0be291
Commit
6c0be291
authored
Mar 04, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: fix front page dates
parent
e5088d23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
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
+8
-9
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 @
6c0be291
...
...
@@ -19,8 +19,9 @@
// 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
))
LIMIT_DATE
=
new
Date
(
new
Date
().
setFullYear
(
new
Date
().
getFullYear
()
-
1
))
.
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
PORTAL_TITLE_DICT
=
{
"
Task
"
:
"
Tasks
"
,
"
Test Result
"
:
"
Test Results
"
,
...
...
@@ -401,10 +402,9 @@
})
.
declareJob
(
"
renderOtdatedMilestoneInfo
"
,
function
()
{
//XXX For testing. REMOVE and use LIMIT_DATE
var
limit_date
=
new
Date
().
toISOString
()
.
substring
(
0
,
new
Date
().
toISOString
().
length
-
5
).
replace
(
"
T
"
,
"
"
);
return
renderMilestoneLines
(
this
,
limit_date
);
//XXX For testing. use LIMIT_DATE
return
renderMilestoneLines
(
this
,
NOW_DATE
);
//return renderMilestoneLines(this, LIMIT_DATE);
})
.
declareJob
(
"
renderProjectDocumentInfo
"
,
function
()
{
...
...
@@ -412,10 +412,9 @@
})
.
declareJob
(
"
renderOutdatedDocumentInfo
"
,
function
()
{
//XXX For testing. REMOVE and use LIMIT_DATE
var
limit_date
=
new
Date
().
toISOString
()
.
substring
(
0
,
new
Date
().
toISOString
().
length
-
5
).
replace
(
"
T
"
,
"
"
);
return
renderProjectDocumentLines
(
this
,
limit_date
);
//XXX For testing. use LIMIT_DATE
return
renderProjectDocumentLines
(
this
,
NOW_DATE
);
//return renderProjectDocumentLines(this, LIMIT_DATE);
})
.
declareJob
(
"
renderTestResultInfo
"
,
function
(
project_list
)
{
...
...
bt5/erp5_web_project_ui/PathTemplateItem/web_page_module/project_gadget_page_project_front_page_js.xml
View file @
6c0be291
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
982.1
8442.49648.4469
7
</string>
</value>
<value>
<string>
982.1
9478.22632.4568
7
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
1583
255694.45
</float>
<float>
1583
317845.73
</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