Template for conditionally displaying rows