move code to view
move code from template to view
display ignore link only if user has permission

same for restore link