fixed entry type active icons

moved code to template with helper