{% macro feed_link(feed) -%} {%- if feed.link %}{%- endif -%} {{ feed_title(feed) }} {%- if feed.link %}{% endif -%} {%- endmacro %} {% macro feed_title(feed) %} {%- if feed.user_title and feed.user_title.strip() -%} {{ feed.user_title }} {%- elif feed.title and feed.title.strip() -%} {{ feed.title }} {%- else -%} {{ feed.url }} {%- endif -%} {% endmacro %} {% macro text_input_button(form_view, action, label, name, placeholder, leave_disabled=false, next=none, context=none) -%}
  • {{ label }} {% if next is not none %}{% endif %} {% for name, value in (context or {}) | dictsort -%} {% endfor %}
    {%- endmacro %} {% macro confirm_button(form_view, action, label, id=none, leave_disabled=false, next=none, context=none) -%}
  • {{ label }} {% if next is not none %}{% endif %} {% for name, value in (context or {}) | dictsort -%} {% endfor %}
    {%- endmacro %} {% macro simple_button(form_view, action, label, leave_disabled=false, next=none, context=none) -%}
  • {% if next is not none %}{% endif %} {% for name, value in (context or {}) | dictsort -%} {% endfor %}
    {%- endmacro %} {% macro radio_links(name, options, default, endpoint, label=none) -%}
  • {% if label %}{{ label }}: {% endif %} {% set current_option = request.args.get(name, default) -%} {%- for option, option_label in options -%} {%- set option_label = option_label or option -%} {%- set args = request.args.copy() -%} {%- if option is none -%} {%- set _ = args.poplist(name) -%} {%- else -%} {%- set _ = args.setlist(name, [option]) -%} {%- endif -%} {%- if option != current_option %}{% endif -%} {{- option_label -}} {%- if option != current_option %} {% endif %} {% endfor %} {%- endmacro %}