Skip to content
Snippets Groups Projects
Commit 8e78211f authored by Frank Duncan's avatar Frank Duncan
Browse files

Add ability for Generic TOCs to omit wiki toc

parent 692fcdcd
No related branches found
No related tags found
No related merge requests found
......@@ -260,8 +260,11 @@ class GenericToc(Toc):
self.data[grouping]["all_proposal_ids"].append(proposal.key())
def template_file(self):
template = "__TOC__"
template += ""
template = ""
if self.include_wiki_toc():
template += "__TOC__"
template += ""
template += "{% for group in groups %}\n"
template += " {%- for proposal_id in group.all_proposal_ids %}\n"
template += (
......@@ -302,6 +305,10 @@ class GenericToc(Toc):
def grouped_data(self):
return {"groups": list(self.data.values())}
def include_wiki_toc(self):
"""Add the wiki __TOC__ if this returns True"""
return True
class GenericMultiLineToc(GenericToc):
"""A special case of GenericToc for columns that have multiple
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment