Don't filter by repo_id column if there isn't one defined.
Template syntax fix