Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
b3685154
Commit
b3685154
authored
4 months ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
infra layout
parent
bffe72db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#32032
passed
4 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_layouts/infra.html
+73
-0
73 additions, 0 deletions
_layouts/infra.html
with
73 additions
and
0 deletions
_layouts/infra.html
0 → 100644
+
73
−
0
View file @
b3685154
---
layout: default
---
{% include site-header.html %}
<main
class=
"main container"
>
<div
class=
"content-up"
>
<article
class=
"article--page typeset"
>
{% if page.wikilink %}
<p>
Mehr infos findest du im
<a
href=
"{{page.wikilink}}"
>
Wiki
</a>
.
</p>
{% endif %}
</article>
<h2>
Informationen zur verfügbarkeit der Infrastrukturkomponente
</h2>
{% assign tool = page -%}
{% include {{site.loaninfo}} %}
<div
id=
"calendar"
></div>
</div>
</div>
</div>
</main>
{% include site-footer.html %}
<script
src=
'{{ site.url }}/assets/fullcalendar/moment.min.js'
></script>
<script
src=
'{{ site.url }}/assets/fullcalendar/jquery.min.js'
></script>
<script
src=
'{{ site.url }}/assets/fullcalendar/ical.min.js'
></script>
<script
src=
'{{ site.url }}/assets/fullcalendar/fullcalendar.min.js'
></script>
<script
src=
'{{ site.url }}/assets/fullcalendar/de.js'
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'
#calendar
'
).
fullCalendar
({
header
:
{
left
:
'
prev,next today
'
,
center
:
'
title
'
,
right
:
'
month,agendaWeek,agendaDay,listMonth
'
},
eventLimit
:
true
,
// allow "more" link when too many events
locale
:
"
de
"
,
navLinks
:
true
,
});
{
%
assign
realslug
=
page
.
url
|
split
:
'
/
'
|
last
%
}
$
.
get
(
'
{{ site.url }}/availability/{{realslug}}/availability.ics
'
,
function
(
res
)
{
var
events
=
[]
var
parsed
=
ICAL
.
parse
(
res
);
parsed
[
2
].
forEach
(
function
(
event
)
{
if
(
event
[
0
]
!==
'
vevent
'
)
return
var
data
=
{};
event
[
1
].
forEach
(
function
(
item
){
data
[
item
[
0
]]
=
item
[
3
];
});
events
.
push
({
title
:
data
[
"
summary
"
],
start
:
data
[
"
dtstart
"
],
end
:
data
[
"
dtend
"
],
url
:
data
[
"
url
"
],
location
:
data
[
"
location
"
]
});
});
e_source
=
{}
e_source
[
'
events
'
]
=
events
;
e_source
[
'
id
'
]
=
'
holydays
'
e_source
[
'
color
'
]
=
"
{{device.calcolor}}
"
$
(
'
#calendar
'
).
fullCalendar
(
'
addEventSource
'
,
e_source
);
});
});
</script>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment