Commit b6377dfb authored by Juan's avatar Juan
Browse files

Added details on program element

parent a547dbe6
Pipeline #2126 passed with stages
in 2 minutes and 46 seconds
......@@ -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>
......
......@@ -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" %}
......
......@@ -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
......
......@@ -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}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment