Add proposal number to proposal page

This commit is contained in:
str4d
2016-04-04 12:50:16 +00:00
parent eb5b492cea
commit 46e15852c0
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ PROPOSAL_LIST_METATAGS = [
]
PROPOSAL_STATUS_SORT = {
'Draft': 1,
'Rejected': 100,
'': 999,
}
@ -151,6 +152,7 @@ def render_rst(directory, name, meta_parser, template):
# publish the spec with docutils
parts = publish_parts(source=rendered_content, source_path=directory, writer_name="html")
meta = meta_parser(parts['meta'])
meta['num'] = int(name[:3])
return render_template(template, title=parts['title'], toc=toc, body=parts['fragment'], name=name, meta=meta)