% for target in ("trend", "products", "categories", "groups", "tags"): % disabled = 'disabled="true"' if target == action else '' % label = target.title() % end