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
3c2f343b
Commit
3c2f343b
authored
May 29, 2019
by
Magnus Holm Brunbjerg
Browse files
Experiments
parent
67a149a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/public/style/experiments.css
0 → 100644
View file @
3c2f343b
.experiments-list
{
display
:
flex
;
flex-direction
:
column
;
}
.experiment
{
width
:
750px
;
margin
:
10px
;
align-self
:
center
;
list-style
:
none
;
border-radius
:
10px
;
background-color
:
var
(
--main-color
);
}
.experiment
:hover
{
background-color
:
var
(
--secondary-color
);
}
.experiment
a
{
text-decoration
:
none
;
color
:
#ffffff
;
}
.experiment-header
{
font-size
:
25px
;
font-weight
:
bold
;
padding
:
2px
;
}
.experiment-information
{
border-top
:
1px
solid
var
(
--secondary-color
)
}
.experiment-information
span
:first-of-type
{
padding-left
:
15px
;
padding-right
:
15px
;
}
\ No newline at end of file
src/public/style/login.css
View file @
3c2f343b
.content
{
height
:
100vh
;
min-
height
:
100vh
;
display
:
flex
;
justify-content
:
center
;
background-color
:
var
(
--main-color
)
...
...
src/public/style/main.css
View file @
3c2f343b
...
...
@@ -13,21 +13,24 @@ body {
}
.main
{
height
:
100vh
;
min-
height
:
100vh
;
}
.content
{
padding
:
40px
;
padding-top
:
25vh
;
height
:
100vh
;
min-height
:
100vh
;
text-align
:
center
;
}
h1
{
font-size
:
50px
;
}
.information
{
margin-top
:
25vh
;
margin-bottom
:
50px
;
}
.information
h1
{
font-size
:
50px
;
.information
{
margin-bottom
:
10px
;
}
.information
p
{
...
...
src/views/experiments.hbs
View file @
3c2f343b
<h1>
Eksperimenter
</h1>
<table>
<thead>
<tr>
<th>
Navn
</th>
<th>
Lærer
</th>
<th>
Start tidspunkt
</th>
<th>
Slut tidspunkt
</th>
</tr>
</thead>
<tbody>
{{#if
experiments
}}
<ul
class=
"experiments-list"
>
{{#
each
experiments
}}
<tr>
<td><a
href=
"/experiments/
{{
this
.
id
}}
"
>
{{
this
.
name
}}
</a></td>
<td>
{{
this
.
user_name
}}
</td>
<td>
{{
this
.
start_time
}}
</td>
<td>
{{
this
.
end_time
}}
</td>
</tr>
<li
class=
"experiment"
>
<a
href=
"/experiments/
{{
this
.
id
}}
"
>
<div
class=
"experiment-header"
>
<span>
{{
this
.
name
}}
</span>
</div>
<div
class=
"experiment-information"
>
<span>
Lærer:
{{
this
.
user_name
}}
</span>
<span>
Tidspunkt:
{{
this
.
start_time
}}
</span>
</div>
</a>
</li>
{{/
each
}}
</tbody>
</table>
\ No newline at end of file
</ul>
{{else}}
<p>
Det ser desværre ud til at der ikke er nogen eksperimenter at vise.
</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