{% import 'forms.html' as forms %} {% macro show_editor_info(info) %} {%- if info.uri -%} {{ info.text }} {%- elif info.email -%} {{ info.text }} {%- else -%} {{ info.text }} {%- endif -%} {% endmacro %} {% macro editor_info(meta) %} {%- set info = get_editor_info(meta) -%} {{ show_editor_info(info) }} {% endmacro %} {% macro table(headings, rows, itemname_cols=[], url_cols=[]) %} {% for heading in headings %} {% if rows and rows[0][loop.index0] is number %} {% else %} {% endif %} {% endfor %} {% for row in rows %} {% for col in row %} {% if col is number %} {% elif loop.index in itemname_cols %} {% elif loop.index in url_cols %} {%- else -%} {% endif %} {% endfor %} {% endfor %}
{{ heading }}{{ heading }}
{{ col }}{{ col }}{{ col }}{{ col }}
{% endmacro %} {% macro _render_subitem_navigation_tree(index, newtab, parentcaller) %} {% endmacro %} {% macro render_subitem_navigation(fqname, newtab, subitems=None) %} {% if not subitems %} {% set subitems = theme_supp.subitem_index(fqname) %} {% endif %} {% if caller %} {% set mycaller = caller %} {% endif %} {% if subitems %}
{{ _('Subitems') }}
{{ _render_subitem_navigation_tree(subitems, newtab, mycaller) }}
{% endif %} {% endmacro %} {% macro header_search(form) %} {{ gen.form.open(form, id='moin-searchform', method='get', action=url_for('frontend.search')) }} {{ forms.render(form['q']) }} {{ forms.render_submit(form, id='moin-search-submit') }} {{ forms.render_errors(form) }} {{ gen.form.close() }} {% endmacro %} {% macro help_on_editing(help) %} {% if help %}

{{ help|safe }}

{% endif %} {% endmacro %} {% macro meta_info(meta) %} {% endmacro %} {% macro alias_list(alias) %} {% if alias %} {% endif %} {% endmacro %} {% macro page_trail_link(wiki_name, fqname, exists) %} {%- if wiki_name -%} {{ fqname|shorten_fqname }} {%- else -%} {{ fqname|shorten_fqname }} {%- endif %} {% endmacro %} {% macro breadcrumbs(breadcrumbs, title_name) %} {% endmacro %} {% macro item_panel(fq_name) %}
  • {{ fq_name.value }}
  • {% endmacro %} {% macro show_meta(rev) %}
    {{ _('Revision') }} {{ rev.meta['revid'] | shorten_id }}
    {{ _('Editor') }}: {{ editor_info(rev.meta) }}
    {{ _('Size') }}: {{ rev.meta['size'] }}
    {{ _('Time') }}: {{ rev.meta.mtime|datetimeformat }}
    {{ _('Comment') }}: {{ rev.meta['comment'] }}
    {% endmacro %}