Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
75d35511
Commit
75d35511
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
simplified project list with dynamic header
parent
732e30a1
master
MLAB-677
devel
patch-1
reset-jul13
reset-merge
test_logoutbutton
testing
1 merge request
!2
Mlab 56
Pipeline
#567
passed with stage
in 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
routes/routes-project.js
+4
-1
routes/routes-project.js
views/DE/project/project-simplified.pug
+47
-1
views/DE/project/project-simplified.pug
views/DE/project/project.html
+1
-26
views/DE/project/project.html
with
52 additions
and
28 deletions
+52
-28
routes/routes-project.js
+
4
-
1
View file @
75d35511
...
...
@@ -93,7 +93,10 @@ module.exports = function (app) {
})
app
.
get
(
'
/project
'
,
function
(
req
,
res
)
{
res
.
render
(
lang
+
'
/project/project-simplified
'
);
res
.
render
(
lang
+
'
/project/project-simplified
'
,
{
isUserAuthenticated
:
req
.
isAuthenticated
(),
user
:
req
.
user
});
})
app
.
get
(
'
/addprojectoverview
'
,
function
(
req
,
res
)
{
...
...
This diff is collapsed.
Click to expand it.
views/DE/project/project-simplified.pug
+
47
-
1
View file @
75d35511
include project.html
\ No newline at end of file
doctype html
html(lang="de")
head
title= "Project List"
meta(charset="UTF-8")
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", 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
include project.html
// jQuery
script(src="https://code.jquery.com/jquery-3.3.1.min.js")
script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js", integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1", crossorigin="anonymous")
// Bootstrap
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
// Header
if isUserAuthenticated
script(src="/js/headfootLogout.js")
else
script(src="https://transfer.hft-stuttgart.de/js/headfoot.js")
\ No newline at end of file
This diff is collapsed.
Click to expand it.
views/DE/project/project.html
+
1
-
26
View file @
75d35511
<!DOCTYPE html>
<html>
<head>
<title>
Project List
</title>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
,
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"stylesheet"
href=
"https://transfer.hft-stuttgart.de/css/bootstrap/bootstrap.css"
type=
"text/css"
>
<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
;}
</style>
</head>
<body>
<div
class=
"container"
>
<hr
/>
<!-- text: Zweck dieser Seite / purpose of this page -->
...
...
@@ -83,13 +67,4 @@
</ol>
<!-- / content body -->
</div>
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity=
"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin=
"anonymous"
></script>
<script
src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity=
"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin=
"anonymous"
></script>
<!-- M4_LAB -->
<script
src=
"https://transfer.hft-stuttgart.de/js/headfoot.js"
></script>
</body>
</html>
\ No newline at end of file
</div>
\ 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
Menu
Explore
Projects
Groups
Snippets