Commit 8c3e3dc7 authored by Administrator's avatar Administrator
Browse files

Do not use `a or b` if a could be 0.

/close #135
parent abc5c119
......@@ -3,7 +3,13 @@
{% block title %}Beschlüsse{% endblock %}
{% macro page_link(text, _page=None, _page_length=None) %}
<a href="{{url_for(request.endpoint, page=_page or page, protocoltype=protocoltype_id, search=search_term, decisioncategory_id=decisioncategory_id, page_length=_page_length or page_length)}}">{{text}}</a>
{% if _page is none %}
{% set _page = page %}
{% endif %}
{% if _page_length is none %}
{% set _page_length = page_length %}
{% endif %}
<a href="{{url_for(request.endpoint, page=_page, protocoltype=protocoltype_id, search=search_term, decisioncategory_id=decisioncategory_id, page_length=_page_length)}}">{{text}}</a>
{% endmacro %}
{% block content %}
......
......@@ -3,7 +3,13 @@
{% block title %}Protokolle{% endblock %}
{% macro page_link(text, _page=None, _page_length=None) %}
<a href="{{url_for(request.endpoint, page=_page or page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length or page_length)}}">{{text}}</a>
{% if _page is none %}
{% set _page = page %}
{% endif %}
{% if _page_length is none %}
{% set _page_length = page_length %}
{% endif %}
<a href="{{url_for(request.endpoint, page=_page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length)}}">{{text}}</a>
{% endmacro %}
{% block content %}
......
......@@ -3,7 +3,13 @@
{% block title %}Todos{% endblock %}
{% macro page_link(text, _page=None, _page_length=None) %}
<a href="{{url_for(request.endpoint, page=_page or page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length or page_length)}}">{{text}}</a>
{% if _page is none %}
{% set _page = page %}
{% endif %}
{% if _page_length is none %}
{% set _page_length = page_length %}
{% endif %}
<a href="{{url_for(request.endpoint, page=_page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length)}}">{{text}}</a>
{% endmacro %}
{% block content %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment