{% load i18n %} {% for action in actions %} {% if all or tablet and action.tablet or mobile and action.mobile %}