{% extends "layouts/" + render_mode + ".html" %} {%- if not result %} {% set page_title = message %} {%- elif result.path == '/' %} {% set page_title = _("Browsing folders and mailboxes") %} {%- else %} {% set page_title = _("Browsing") + ": " + result.name %} {%- endif %} {% block title %}{{page_title}}{% endblock %} {% block contenttools %} {%- set activities = [{ 'name': 'parent-folder', 'url': '../', 'text': _("Parent"), 'description': _("Open Parent Folder"), 'icon': 'upload' }] -%} {# }, { 'name': 'folder_add', 'url': '#folder-add', 'text': _("Add Folder"), 'description': _("Create a new folder"), 'icon': 'plus' }, { 'name': 'mailbox_add', 'url': '#mailbox-add', 'text': _("Add Mailbox"), 'description': _("Create a new mailbox"), 'icon': 'plus' }] #} {%- set tools_disable_checkbox = True -%} {%- set selection_initial_prompt = page_title -%} {%- include("partials/tools_default.html") -%} {% endblock %} {%- macro help(attr) -%} {% if attr == 'flag_mailpile' %}
These are Mailpile-specific data.
{% elif attr == 'flag_directory' %}{{_("Browse local or remote folders for mailboxes to add to your pile.")}}
{% elif attr == 'flag_mailbox' %}{{_("These are mailboxes recognized by Mailpile.")}} {{_("Click to view mailbox contents or change settings.")}}
{% elif attr == 'flag_files' %} {% endif %} {%- endmacro -%} {%- macro browse_url(attr, info) -%} {%- if attr == 'flag_mailbox' -%} {{- U('/search/?q=vfs:', info.encoded) -}} {%- else -%} {{- U('/browse', info.path, '/') -}} {%- endif -%} {%- endmacro -%} {%- macro box_icon(attr, info, icn) -%} {%- if info.icon -%} {%- if '-' in info.icon -%} {%- else %}