{%- set hard_coded_display_modes = safe(' ') -%} {% if "in:inbox" in result.search_terms %} {%- set search_actions_1 = '
  • ' -%} {% else %} {%- set search_actions_1 = '
  • ' -%} {% endif %} {%- set search_actions_2 = '
  • ' -%} {% if "in:spam" in result.search_terms %} {%- set search_actions_3 = '
  • ' -%} {% else %} {%- set search_actions_3 = '
  • ' -%} {% endif %} {%- set search_actions_4 = '
  • ' -%} {%- set hard_coded_selection_actions = safe(search_actions_1 + search_actions_2 + search_actions_3 + search_actions_4) -%} {%- set search_terms_in = (result.search_terms or [''])[0][3:] %} {%- if 'in:' == (result.search_terms or [''])[0][:3] %} {%- set saveClass = 'hide' %} {%- set editClass = '' %} {%- else %} {%- set saveClass = '' %} {%- set editClass = 'hide' %} {%- endif %} {%- set activities = [{ 'name': 'save_search', 'icon': 'star', 'class': saveClass, 'url': '#save_search', 'text': _("Save"), 'description': _("Save the results of this search to a new tag") }, { 'name': 'edit_tag', 'icon': 'settings', 'class': editClass, 'aclass': 'auto-modal auto-modal-reload', 'url': '/tags/edit.html?only=' + search_terms_in, 'text': _("Edit"), 'description': _("Edit") + ': ' + search_terms_in }] -%} {%- set display_refiners = [{ 'name': 'display_all', 'icon': 'inbox', 'url': '/search/', 'url_args_remove': [['qr', ''], ['context', ''], ['start', ''], ['end', '']], 'text': _("All"), 'description': _("All messages") },{ 'name': 'unread', 'icon': 'new', 'url': '/search/', 'url_args_remove': [['qr', ''], ['context', ''], ['start', ''], ['end', '']], 'url_args_add': [['qr', 'is:unread']], 'text': _("Unread"), 'description': _("Unread messages") },{ 'name': 'has_attachment', 'icon': 'attachment', 'url': '/search/', 'url_args_remove': [['qr', ''], ['context', ''], ['start', ''], ['end', '']], 'url_args_add': [['qr', 'has:attachment']], 'text': _("Attachments"), 'description': _("Messages with attachments") }] -%} {%- set display_modes = [{ 'name': 'display_list', 'icon': 'list', 'url': '/search/', 'text': _("List"), 'description': _("List view") }] -%} {%- include('partials/tools_default.html') -%}