Skip to content
Snippets Groups Projects
Verified Commit 571392e2 authored by Huste, Tobias's avatar Huste, Tobias :rabbit:
Browse files

Fix years being shown even if no item displayed

parent af8df1bf
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