Rewritten vm_common partials to HAML