Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
6028cfdb
Commit
6028cfdb
authored
Mar 06, 2020
by
Rosanny Sihombing
Browse files
merge with testing
parent
b4d3fe23
Changes
1
Show whitespace changes
Inline
Side-by-side
routes/routes-project.js
View file @
6028cfdb
...
@@ -6,6 +6,38 @@ module.exports = function (app) {
...
@@ -6,6 +6,38 @@ module.exports = function (app) {
// ======== APP ROUTES - PROJECT ====================
// ======== APP ROUTES - PROJECT ====================
var
lang
=
'
DE
'
var
lang
=
'
DE
'
app
.
get
(
'
/mailinglists
'
,
function
(
req
,
res
)
{
async
.
waterfall
([
function
(
done
)
{
methods
.
getAllMailinglists
(
function
(
mailinglistOverview
,
err
)
{
if
(
!
err
)
{
done
(
err
,
mailinglistOverview
)
}
})
},
// create JSON object of mailinglists for front-end
function
(
mailinglistOverview
,
done
)
{
var
allMailingLists
=
[]
// JSON object
for
(
let
i
=
0
;
i
<
mailinglistOverview
.
length
;
i
++
)
{
// add data to JSON object
allMailingLists
.
push
({
id
:
mailinglistOverview
[
i
].
id
,
name
:
mailinglistOverview
[
i
].
name
,
src
:
mailinglistOverview
[
i
].
src
,
projectstatus
:
mailinglistOverview
[
i
].
projectstatus
,
project_title
:
mailinglistOverview
[
i
].
project_title
});
}
res
.
render
(
lang
+
'
/project/mailinglists
'
,
{
isUserAuthenticated
:
req
.
isAuthenticated
(),
user
:
req
.
user
,
mailinglists
:
allMailingLists
});
}
])
});
app
.
get
(
'
/project
'
,
function
(
req
,
res
)
{
app
.
get
(
'
/project
'
,
function
(
req
,
res
)
{
async
.
waterfall
([
async
.
waterfall
([
// get all projects from projectdb
// get all projects from projectdb
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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