[sw] extract templates for sidebar and green build table