add ternary operator fix on article preview
pass all views left to haml