Added CONDITION block to HTML templates