Skip to content
Snippets Groups Projects
Commit bc3fe85c authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

Merge branch '63-roadmap-old-years-appear-despite-of-hide-past-items' into 'master'

Resolve "Roadmap: Old years appear despite of "Hide past items""

Closes #63

See merge request hifis/hifis.net!66
parents af8df1bf 571392e2
No related branches found
No related tags found
1 merge request!66Resolve "Roadmap: Old years appear despite of "Hide past items""
......@@ -29,11 +29,6 @@
{%- assign sorted_roadmap_by_date = sorted_roadmap | where_exp: "roadmap", "roadmap.date == date_item" -%}
{%- assign newyear = date_item | date: "%Y" -%}
{%- if newyear != year -%}
{%- assign year = newyear -%}
<h1 class="text-center">{{ newyear }}</h1>
{%- endif -%}
{%- capture today -%}{{ 'now' | date: '%s'}}{%- endcapture -%}
{%- capture roadmap_item_time -%}{{ date_item | date: '%s'}}{%- endcapture -%}
{%- assign days_since = today | minus: roadmap_item_time | divided_by: 86400 -%}
......@@ -46,6 +41,11 @@
{%- assign hidden_class = "" -%}
{%- endif -%}
{%- if newyear != year -%}
{%- assign year = newyear -%}
<h1 class="text-center {{ hidden_class }}">{{ newyear }}</h1>
{%- endif -%}
<div class="roadmap-month {{ hidden_class }}">
<div class="timeline-bubble"></div>
<h2>{{ date_item | date: "%B %Y" }}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment