Move timelines table header generation to template