Added code for not showing an editable link for events in the past