{% for file in files %} {% if not single %}   {% endif %} {% if user.is_authenticated %}   {%endif%}   {{file.name}} {{file.stream}} {{file.state}} {{file.events}} {{file.physstat}} {{file.bytes}} {{ file.creationtime|date:"Y-m-d H:i:s" }} {% if file.castor or file.has_nevents %}   {{file.castor|default_if_none:"Does not exists at the CASTOR"}} nevents 0:{{file.nevent_0}} | 1:{{file.nevent_1}} | 2:{{file.nevent_2}} | 3:{{file.nevent_3}} | 4:{{file.nevent_4}} | 5:{{file.nevent_5}} | 6:{{file.nevent_6}} | 7:{{file.nevent_7}} {% endif %} {% endfor %} {%if next %} Next {%endif%}