# START legend #
	# IF legend.C_ROOT_CATEGORY #
		<span class="pinned small" data-color-surround="{legend.COLOR}">{legend.NAME}</span>
	# ELSE #
		<a class="pinned small offload" data-color-surround="{legend.COLOR}" href="{legend.U_CATEGORY}">{legend.NAME}</a>
	# ENDIF #
# END legend #
