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
ec2bd87d
Commit
ec2bd87d
authored
Feb 18, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: render front project list
parent
4212bf79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_front_page_info.js.js
...ortal_skins/erp5_web_project/gadget_front_page_info.js.js
+4
-4
No files found.
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_front_page_info.js.js
View file @
ec2bd87d
...
...
@@ -14,6 +14,8 @@
one_year_old_date
=
new
Date
();
one_year_old_date
.
setFullYear
(
one_year_old_date
.
getFullYear
()
-
1
);
//var date = "Wed, 16 Oct 2019 09:06:19 +0000";
//var js_date = new Date(date);
/*date_query_list.push(new SimpleQuery({
key: "portal_type",
operator: "=",
...
...
@@ -219,6 +221,7 @@
//TODO check modification date and return item with status 0, 1 or 2 (green, orange, red)
//we need 2 limit dates that should be based on portal type (e.g. Milestones segmented by months, maybe Taks by weeks)
//where to set this limits dates? a manifest? site configuration?
var
js_date
=
new
Date
(
item
.
value
.
modification_date
);
item
.
status
=
0
;
item
.
status_color
=
"
green
"
;
//for quick testing purposes
...
...
@@ -249,7 +252,6 @@
forum_link
=
document
.
createElement
(
'
a
'
);
box_div
.
classList
.
add
(
"
project-box
"
);
title_div
.
classList
.
add
(
"
project-title
"
);
//TODO get project info (another jio query?)
title_div
.
innerHTML
=
project_title
;
info_div
.
classList
.
add
(
"
project-info
"
);
left_info_div
.
classList
.
add
(
"
left
"
);
...
...
@@ -311,7 +313,6 @@
project_row
.
status_html
.
classList
.
add
(
item
.
status_color
);
}
}
project_row
.
list
.
push
(
item
);
}
else
{
project_line_html_element_list
=
createProjectLineHtmlElement
(
item
.
value
.
portal_type
,
1
,
0
+
!
status_ok
,
item
.
status_color
);
left_line_div
=
project_line_html_element_list
[
0
];
...
...
@@ -324,8 +325,7 @@
"
total_count
"
:
1
,
"
total_html
"
:
total_span
,
"
out_count
"
:
0
+
!
status_ok
,
"
out_html
"
:
fail_span
,
"
list
"
:
[
item
]
"
out_html
"
:
fail_span
};
}
}
...
...
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