Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ITPDP2019
Gain.fam
web-server
Commits
5fc4dd72
Commit
5fc4dd72
authored
Jun 10, 2019
by
Magnus Holm Brunbjerg
Browse files
fix
parent
a7772474
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/app/index.js
View file @
5fc4dd72
...
...
@@ -130,7 +130,7 @@ app.route('/experiments')
})
})
/**
* Create or end an experiment
the temp way
* Create or end an experiment
*/
.
post
((
req
,
res
,
next
)
=>
{
const
experimentContent
=
{
...
...
src/public/style/experiments.css
View file @
5fc4dd72
...
...
@@ -24,12 +24,14 @@
font-size
:
25px
;
font-weight
:
bold
;
padding
:
2px
;
margin
:
4px
0px
1px
0px
;
}
.experiment-information
{
border-top
:
1px
solid
var
(
--secondary-color
)
margin
:
1px
0px
4px
0px
;
}
.experiment-information
span
:first-of-type
{
padding-left
:
15px
;
padding-right
:
15px
;
.experiment-information
span
{
margin
:
0px
-5px
;
padding
:
0px
20px
;
border-top
:
2px
solid
var
(
--secondary-color
);
}
\ No newline at end of file
src/views/issues.hbs
View file @
5fc4dd72
{{#if
issues
}}
<h1>
{{
experiment
.
name
}}
</h1>
<p>
Lærer:
{{
experiment
.
user_name
}}
</p>
<span>
Start:
{{
experiment
.
start_time
}}
</span>
<span>
Slut:
{{
experiment
.
end_time
}}
</span>
{{#if
issues
}}
<div
style=
"position: relative; height:40vh; width:80vw"
>
<canvas
id=
"issues-chart"
></canvas>
</div>
...
...
@@ -16,5 +16,6 @@
makeChart
(
data
)
</script>
{{else}}
<br><br><br><br>
<p>
Det ser ud til at der ikke var nogen problemer under eksperimentets forløb.
</p>
{{/if}}
\ No newline at end of file
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