logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

code.html (734B)


  1. {% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
  2. {{ result_header(result, favicons) }}
  3. {{ result_sub_header(result) }}
  4. {% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}
  5. {% if result.repository %}<p class="result-content">{{ icon('file') }} <a href="{{ result.repository }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ result.repository }}</a></p>{% endif %}
  6. <div dir="ltr">
  7. {{ result.codelines|code_highlighter(result.code_language)|safe }}
  8. </div>
  9. {% if rtl %}
  10. {{ result_footer_rtl(result) }}
  11. {% else %}
  12. {{ result_footer(result) }}
  13. {% endif %}