render partial to remove duplicated code in haml