diff --git a/i2p2www/pages/spec/proposal-show.html b/i2p2www/pages/spec/proposal-show.html index 4b3d8c9c9ef1d1899cc09b515b57b703c621d469..de00a93b89e9b6bddde63e6acec83e463e4fc8ba 100644 --- a/i2p2www/pages/spec/proposal-show.html +++ b/i2p2www/pages/spec/proposal-show.html @@ -8,6 +8,8 @@ {% endblock %} {% block content %} <dl class="meta"> + <dt>Number</dt> + <dd>{{ meta.num }}</dd> <dt>Author</dt> <dd>{{ meta.author }}</dd> <dt>Created</dt> diff --git a/i2p2www/spec/views.py b/i2p2www/spec/views.py index 318638553450d156e5a3620a6eeb798fcc6645ad..a2d26b29d01002e964e4fe926af712010d64709e 100644 --- a/i2p2www/spec/views.py +++ b/i2p2www/spec/views.py @@ -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)