Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Queue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
Queue
Merge requests
!821
Resolve "Indicate length of created lab"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Indicate length of created lab"
728-indicate-length-of-created-lab
into
development
Overview
3
Commits
2
Pipelines
0
Changes
4
Merged
Resolve "Indicate length of created lab"
Ada Turgut
requested to merge
728-indicate-length-of-created-lab
into
development
11 months ago
Overview
3
Commits
2
Pipelines
0
Changes
4
Duration is displayed when creating regular and limited capacity labs.
The grace period is also included depending on the value set in advanced settings.
The default duration for regular labs is decreased to 3:30 rather than 3:45 to account for the grace period, which is additional to the duration set.
Regular lab creation:
Limited capacity lab creation:
Closes
#728 (closed)
Edited
10 months ago
by
Ada Turgut
1
0
Merge request reports
Compare
development
version 2
09b21020
10 months ago
version 1
ef73a5c1
10 months ago
development (base)
and
latest version
latest version
0fb08a54
2 commits,
9 months ago
version 2
09b21020
1 commit,
10 months ago
version 1
ef73a5c1
1 commit,
10 months ago
4 files
+
69
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/main/resources/templates/lab/create/components/lab-general.html
+
11
−
1
View file @ 0fb08a54
Edit in single-file editor
Open in Web IDE
Show full file
@@ -90,6 +90,9 @@
Slot error
</div>
</div>
<div
class=
"flex gap-0 pt-7"
>
<span
class=
"flex align-center"
id=
"session-duration"
></span>
</div>
</div>
</th:block>
</div>
@@ -222,7 +225,14 @@
if
(
opensAtInput
)
{
opensAtInput
.
addEventListener
(
"
change
"
,
function
()
{
closesAtInput
.
min
=
opensAtInput
.
value
;
closesAtInput
.
value
=
moment
(
opensAtInput
.
value
).
add
(
225
,
"
minutes
"
).
format
(
"
YYYY-MM-DD[T]HH:mm
"
);
closesAtInput
.
value
=
moment
(
opensAtInput
.
value
).
add
(
210
,
"
minutes
"
).
format
(
"
YYYY-MM-DD[T]HH:mm
"
);
displayDuration
(
true
);
});
}
if
(
closesAtInput
)
{
closesAtInput
.
addEventListener
(
"
change
"
,
function
()
{
displayDuration
(
true
);
});
}
Loading