Rewritten generic_mailer view to HAML + added gettext calls

Parent issues: #1001 #1025