--- layout: base ---

{{ page.title }}

{% if page.topic-status == "open" %}

{% endif %} {% assign topics = site.topics %} {% if page.topic-status == "open" %} {% assign array = site.emptyArray %} {% capture now %}{{ 'now' | date: '%s' | plus: 0 }}{% endcapture %} {% for topic in topics %} {% capture expiration-date %}{{ topic.expiration-date | date: '%s' | plus: 0 }}{% endcapture %} {% unless topic.expiration-date and expiration-date < now %} {% assign array = array | push: topic %} {% endunless %} {% endfor %} {% assign topics = array %} {% endif %}
{% if page.topic-status == "expired" %} {% capture now %}{{ 'now' | date: '%s' | plus: 0 }}{% endcapture %} {% for topic in site.topics %} {% capture expiration-date %}{{ topic.expiration-date | date: '%s' | plus: 0 }}{% endcapture %} {% if topic.expiration-date and expiration-date < now %} {% include block image=topic.image title=topic.title teaser=topic.teaser url=topic.url %} {% endif %} {% endfor %} {% else %} {% assign topics = topics | where:"status",page.topic-status | sort:"date" | reverse %} {% assign topTopics = site.emptyArray %} {% assign otherTopics = site.emptyArray %} {% for topic in topics %} {% if topic.put-on-top-of-the-list == true %} {% assign topTopics = topTopics | push: topic %} {% else %} {% assign otherTopics = otherTopics | push: topic %} {% endif %} {% endfor %} {% assign topics = topTopics | concat: otherTopics %} {% assign counter = 0 %} {% for topic in topics %} {% assign typeClasses = "topic " %} {% if topic.type-mcs-bachelor-project == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-mcsp" %} {% endif %} {% if topic.type-mcs-bachelor-thesis == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-mcst" %} {% endif %} {% if topic.type-hci-master-project == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-hcip" %} {% endif %} {% if topic.type-hci-master-thesis == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-hcit" %} {% endif %} {% if topic.type-cs-bachelor-thesis == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-csbt" %} {% endif %} {% if topic.type-cs-master-project == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-csmp" %} {% endif %} {% if topic.type-cs-master-thesis == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-csmt" %} {% endif %} {% if topic.type-ge-bachelor-thesis == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-gebt" %} {% endif %} {% if topic.type-phd-project == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-phd" %} {% endif %} {% if topic.type-industry == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-ind" %} {% endif %} {% if topic.type-industry-coop == true %} {% assign typeClasses = typeClasses | append: " " | append: "type-indcoop" %} {% endif %} {% assign title = topic.title %} {% if topic.put-on-top-of-the-list == true %} {% assign title = title | append: " ★" %} {% endif %} {% include block class=typeClasses image=topic.image title=title teaser=topic.teaser url=topic.url %} {% assign counter = counter | plus: 1 %} {% endfor %} {% include placeholderBlocks itemListLength=counter hiddenItems=0 %} {% endif %}