It might make sense to limit the template just the for loop, and make the static part of the template part of the container already. The `nav navbar-nav` element would then become the container.