Support proposal links with number only (ticket #2144)

This commit is contained in:
str4d
2018-03-03 14:45:34 +00:00
parent 87e8a1d47e
commit 47d884884e
3 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
{%- macro change_lang(lang) -%}
{%- if request.endpoint == 'site_show' -%}{{ url_for('site_show', lang=lang, page=page) }}
{%- elif request.endpoint == 'spec_show' -%}{{ url_for('spec_show', name=name) }}
{%- elif request.endpoint == 'proposal_number' -%}{{ url_for('proposal_show', name=name) }}
{%- elif request.endpoint == 'proposal_show' -%}{{ url_for('proposal_show', name=name) }}
{%- elif request.endpoint == 'blog_index' -%}
{%- if category -%}{{ url_for('blog_index', lang=lang, category=category) }}