I don't think it's possible to do that with template overrides because of the lack of module/view design keys.
I would use the module_params template operator to see which module/view has been run ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/data_and_information_extraction/module_params ).