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
Project Page
Commits
22fc1bed
Commit
22fc1bed
authored
5 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
fixing /projectOverview
parent
0586d6c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
routes/routes-project.js
+39
-40
routes/routes-project.js
views/DE/project/projectOverview.pug
+24
-57
views/DE/project/projectOverview.pug
with
63 additions
and
97 deletions
+63
-97
routes/routes-project.js
+
39
-
40
View file @
22fc1bed
...
@@ -329,15 +329,14 @@ module.exports = function (app) {
...
@@ -329,15 +329,14 @@ module.exports = function (app) {
},
},
// render projectOverview page
// render projectOverview page
function
(
projectImages
,
projectOverview
,
done
)
{
function
(
projectImages
,
projectOverview
,
done
)
{
console
.
log
(
projectImages
)
console
.
log
(
projectImages
);
partnerWebsites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
partner_website
)
partnerWebsites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
partner_website
);
partnerNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
partner_name
)
partnerNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
partner_name
);
awardSites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
award_website
)
awardSites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
award_website
);
awardNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
award_name
)
awardNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
award_name
);
sponsorWebsites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_website
)
sponsorWebsites
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_website
);
sponsorImgs
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_img
)
sponsorImgs
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_img
);
sponsorNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_name
)
sponsorNames
=
helpers
.
stringToArray
(
projectOverview
[
0
].
sponsor_name
);
res
.
render
(
lang
+
'
/project/projectOverview
'
,
{
res
.
render
(
lang
+
'
/project/projectOverview
'
,
{
isUserAuthenticated
:
req
.
isAuthenticated
(),
isUserAuthenticated
:
req
.
isAuthenticated
(),
...
...
This diff is collapsed.
Click to expand it.
views/DE/project/projectOverview.pug
+
24
-
57
View file @
22fc1bed
...
@@ -4,59 +4,32 @@ html(lang="de")
...
@@ -4,59 +4,32 @@ html(lang="de")
title= "Project List"
title= "Project List"
meta(charset="UTF-8")
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
link(rel="stylesheet", type="text/css", href="https://transfer.hft-stuttgart.de/css/bootstrap/bootstrap.css")
link(rel="stylesheet", type="text/css", href="https://transfer.hft-stuttgart.de/css/bootstrap.min.css")
link(rel="stylesheet", type="text/css", href="https://transfer.hft-stuttgart.de/css/m4lab.css")
link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.8.2/css/all.css", integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay", crossorigin="anonymous")
link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.8.2/css/all.css", integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay", crossorigin="anonymous")
style.
.collapse {
display: none;
}
.collapse.in {
display: block;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition-timing-function: ease;
-o-transition-timing-function: ease;
transition-timing-function: ease;
-webkit-transition-duration: .35s;
-o-transition-duration: .35s;
transition-duration: .35s;
-webkit-transition-property: height,visibility;
-o-transition-property: height,visibility;
transition-property: height,visibility;
}
.warning {
color: red;
font-size: 11px;
}
body
body
div
div
(class="container")
for project in projectOV
for project in projectOV
div(class="
flex-container
")
div(class="
row
")
div(class="
main
")
div(class="
col-sm-8 pt-3
")
h1 #{project.title}
h1 #{project.title}
div(style="float:right; margin-left:30px; margin-bottom:0px; width:50%;")
div(style="float:right; margin-left:30px; margin-bottom:0px; width:50%;")
img(src=project.src, width="100%")
img(src=project.src, width="100%")
p(style="text-align:right") #{project.caption}
p(style="text-align:right") #{project.caption}
h2 Projektüberblick
h2
(class="pt-4")
Projektüberblick
p !{project.overview}
p !{project.overview}
br
br
b keywords:
b keywords:
span #{project.keywords}
span #{project.keywords}
br
h2(class="pt-4") Fragestellung
h2 Fragestellung
p !{project.question}
p !{project.question}
p
h2(class="pt-4") Vorgehensweise
h2 Vorgehensweise
p !{project.approach}
p !{project.approach}
br
h2(class="pt-4") Ergebnis und Nutzung
br
h2 Ergebnis und Nutzung
p !{project.result}
p !{project.result}
div(class="
side
")
div(class="
col-sm-4 pt-3" style="background-color: #f1f1f1
")
for image in projectImgs
for image in projectImgs
if image.pos == '2' || image.pos == '3'
if image.pos == '2' || image.pos == '3'
div(class="projectimg")
div(class="projectimg")
...
@@ -141,11 +114,9 @@ html(lang="de")
...
@@ -141,11 +114,9 @@ html(lang="de")
br
br
span !{project.further_details}
span !{project.further_details}
if project.pname == 'M4LAB'
div(class="Downloads" style="height:200px;")
div(class="Downloads" style="height:200px;")
h5 Downloads
h5 Downloads
p
i(class="fas fa-file-download")
a(href="./images/M4_LAB_Projekt/transferstrategie.pdf" download target="_blank") Transferstrategie der HfT Stuttgart
div(class="Projektlogos")
div(class="Projektlogos")
img(src="./images/M4_LAB_Projekt/WRS_Logo.jpg" width="32%")
img(src="./images/M4_LAB_Projekt/WRS_Logo.jpg" width="32%")
...
@@ -153,8 +124,7 @@ html(lang="de")
...
@@ -153,8 +124,7 @@ html(lang="de")
img(src="./images/M4_LAB_Projekt/GWK_Logo.jpg" width="32%")
img(src="./images/M4_LAB_Projekt/GWK_Logo.jpg" width="32%")
br
br
br
br
img(src="./images/M4_LAB_Projekt/bbf_logo.png" width="32%")
img(src="./images/M4_LAB_Projekt/Innovative_Hochschule_Initiative_BMBF_GWK_RGB.png" width="100%")
img(src="./images/M4_LAB_Projekt/ihs_logo.jpg" width="32%")
//jQuery
//jQuery
script(src="https://code.jquery.com/jquery-3.3.1.min.js")
script(src="https://code.jquery.com/jquery-3.3.1.min.js")
...
@@ -162,7 +132,4 @@ html(lang="de")
...
@@ -162,7 +132,4 @@ html(lang="de")
// Bootstrap
// Bootstrap
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
// Header
// Header
if isUserAuthenticated
script(src="https://transfer.hft-stuttgart.de/js/headfoot.js")
script(src="https://m4lab.hft-stuttgart.de/js/headfootLogout.js")
\ No newline at end of file
else
script(src="https://m4lab.hft-stuttgart.de/js/headfoot.js")
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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