Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Juan
AMRO22-website
Commits
b6377dfb
Commit
b6377dfb
authored
Jun 16, 2022
by
Juan
Browse files
Added details on program element
parent
a547dbe6
Pipeline
#2126
passed with stages
in 2 minutes and 46 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
_layouts/program-list.html
View file @
b6377dfb
...
...
@@ -101,14 +101,6 @@ layout: main
>
{% endfor %}
</p>
<p
class=
"day-program-location"
>
<!-- <a href="{{ site.baseurl }}/locations/{{ program.location | slugify }}"
>{{ program.location }}</a
> -->
<a
href=
"https://radical-openness.org/node/{{ program.location_nid }}"
>
{{ program.location }}
</a
>
</p>
<!--<div class="day-program-element-summary">{{ program.summary }}</div>-->
</div>
</div>
...
...
@@ -196,14 +188,6 @@ layout: main
>
{% endfor %}
</p>
<p
class=
"day-program-location"
>
<!-- <a href="{{ site.baseurl }}/locations/{{ program.location | slugify }}"
>{{ program.location }}</a
> -->
<a
href=
"https://radical-openness.org/node/{{ program.location_nid }}"
>
{{ program.location }}
</a
>
</p>
<!--<div class="day-program-element-summary">{{ program.summary }}</div>-->
</div>
</div>
...
...
@@ -286,14 +270,6 @@ layout: main
>
{% endfor %}
</p>
<p
class=
"day-program-location"
>
<!-- <a href="{{ site.baseurl }}/locations/{{ program.location | slugify }}"
>{{ program.location }}</a
> -->
<a
href=
"https://radical-openness.org/node/{{ program.location_nid }}"
>
{{ program.location }}
</a
>
</p>
<!--<div class="day-program-element-summary">{{ program.summary }}</div>-->
</div>
</div>
...
...
@@ -376,14 +352,6 @@ layout: main
>
{% endfor %}
</p>
<p
class=
"day-program-location"
>
<!-- <a href="{{ site.baseurl }}/locations/{{ program.location | slugify }}"
>{{ program.location }}</a
> -->
<a
href=
"https://radical-openness.org/node/{{ program.location_nid }}"
>
{{ program.location }}
</a
>
</p>
<!--<div class="day-program-element-summary">{{ program.summary }}</div>-->
</div>
</div>
...
...
_layouts/program.html
View file @
b6377dfb
...
...
@@ -5,29 +5,66 @@ layout: main
<div
class=
"main-content-background"
></div>
<div
class=
"main-content-container main-content-program-element"
>
<article
class=
"main-content"
>
<h5>
<h5
class=
"back-nav"
>
<a
href=
"javascript:history.back()"
>
← back
</a>
<!--
<a href="{{ site.baseurl }}/contributors/">to contributors</a>
<a href="{{ site.baseurl }}/program/">to program</a>
-->
</h5>
<div
class=
"program-image-container"
>
<img
src=
"{{ page.program_img_1400 }}"
/>
</div>
<h4>
{{ page.name }}
</h4>
<h5>
<p
class=
"day-program-element-contributors"
>
{% if page.contributors == "TITiPI (Helen v. Pritchard, Femke Snelting)" %}
<a
href=
"{{ site.baseurl }}/contributors/{{ page.contributors | slugify: 'latin' }}"
>
{{ page.contributors }}
</a
>
{% else %} {% assign contributors_array = page.contributors | split: ", " %} {% for
contributor in contributors_array %}
<a
href=
"{{ site.baseurl }}/contributors/{{ contributor | remove: '(' | remove: ')' | slugify: 'latin' }}"
>
{{ contributor }}{% unless forloop.last %},{% endunless %}
</a
<div
class=
"program-name-details"
>
<h4>
{{ page.name }}
</h4>
{% if page.name == "AMRO Showcase" or page.name == "Next Cloud Atelierhaus" %} {% else
%}
<h5>
<p
class=
"day-program-element-contributors"
>
{% if page.contributors == "TITiPI (Helen v. Pritchard, Femke Snelting)" %}
<a
href=
"{{ site.baseurl }}/contributors/{{ page.contributors | slugify: 'latin' }}"
>
{{ page.contributors }}
</a
>
{% else %} {% assign contributors_array = page.contributors | split: ", " %} {%
for contributor in contributors_array %}
<a
href=
"{{ site.baseurl }}/contributors/{{ contributor | remove: '(' | remove: ')' | slugify: 'latin' }}"
>
{{ contributor }}{% unless forloop.last %},{% endunless %}
</a
>
{% endfor %} {% endif %}
</p>
</h5>
</div>
<div
class=
"program-time-location-details"
>
<p
class=
"day-program-element-format"
>
{{ page.format }}
</p>
<div
class=
"day-program-date"
>
{% if page.date == "15.06." %}
<p>
15th June
</p>
{% elsif "16.06." %}
<p>
16th June
</p>
{% elsif "17.06." %}
<p>
17th June
</p>
{% elsif "18.06." %}
<p>
18th June
</p>
{% endif %}
</div>
{% if page.start_hour != "" %}
<div
class=
"day-program-time"
>
<p>
{{ page.start_hour }}:{{ page.start_minute }} – {{ page.end_hour }}:{{
page.end_minute }}
</p>
</div>
{% endif %}
<p
class=
"day-program-location"
>
<a
href=
"https://radical-openness.org/node/{{ program.location_nid }}"
>
{{ page.location }}
</a
>
{% endfor %} {% endif %}
</p>
</h5>
{% endif %}
</div>
<p>
{{ page.content }}
</p>
<h5>
{% if page.format == "Workshop" or page.format == "Worklab" %}
...
...
assets/style.css
View file @
b6377dfb
...
...
@@ -817,6 +817,41 @@ main content
width
:
100%
;
}
.program-name-details
{
margin-top
:
1.2rem
;
margin-bottom
:
1.2rem
;
}
.program-time-location-details
{
margin-top
:
1.2rem
;
margin-bottom
:
1.2rem
;
}
.program-name-details
h4
,
.program-name-details
h5
,
.program-name-details
p
{
margin
:
unset
;
}
.program-time-location-details
p
{
margin
:
unset
;
}
.program-time-location-details
.day-program-date
p
,
.program-time-location-details
.day-program-time
p
{
font-style
:
italic
;
color
:
var
(
--main-contrast
);
}
.back-nav
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
align-items
:
baseline
;
align-content
:
stretch
;
}
/*
=============================================
logo list style
...
...
json2md.js
View file @
b6377dfb
...
...
@@ -62,6 +62,13 @@ const createProgramElementMD = (dataProgram) => {
var
programImg300
=
jsonParsed
[
i
].
image_300
;
var
programImg1400
=
jsonParsed
[
i
].
image_1400
;
var
programDate
=
jsonParsed
[
i
].
day
;
var
programStartHour
=
jsonParsed
[
i
].
start_hour
;
var
programEndHour
=
jsonParsed
[
i
].
end_hour
;
var
programStartMinute
=
jsonParsed
[
i
].
start_minute
;
var
programEndMinute
=
jsonParsed
[
i
].
end_minute
;
var
programLocation
=
jsonParsed
[
i
].
location
;
var
programSrc
=
`https://radical-openness.org/node/
${
programSrcNode
}
#webform`
;
var
programNameSlug
=
slugify
(
...
...
@@ -82,6 +89,12 @@ layout: program
permalink: /program/
${
programNameSlug
}
/
name: "
${
programName
}
"
format:
${
programFormat
}
date: "
${
programDate
}
"
start_hour: "
${
programStartHour
}
"
end_hour: "
${
programEndHour
}
"
start_minute: "
${
programStartMinute
}
"
end_minute: "
${
programEndMinute
}
"
location: "
${
programLocation
}
"
program_src:
${
programSrc
}
contributors: "
${
programContributors
}
"
program_img_300: https://radical-openness.org
${
programImg300
}
...
...
Write
Preview
Supports
Markdown
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