results.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "pix-art/base.html" %}
  2. {% block title %}{{ q }} - {% endblock %}
  3. {% block meta %}{% endblock %}
  4. {% block content %}
  5. <div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
  6. <div class="small search center">
  7. {% include 'pix-art/search.html' %}
  8. </div>
  9. <div id="results">
  10. {% for result in results %}
  11. {% set index = loop.index %}
  12. {% include 'pix-art/result_templates/default.html' %}
  13. {% endfor %}
  14. {% if paging %}
  15. <div id="pagination">
  16. {% if pageno > 1 %}
  17. <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
  18. <div class="{% if rtl %}right{% else %}left{% endif %}">
  19. <input type="hidden" name="q" value="{{ q }}" />
  20. {% for category in selected_categories %}
  21. <input type="hidden" name="category_{{ category }}" value="1"/>
  22. {% endfor %}
  23. <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
  24. <input type="submit" value="<< {{ _('previous page') }}" />
  25. </div>
  26. </form>
  27. {% endif %}
  28. <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
  29. <div class="{% if rtl %}left{% else %}right{% endif %}">
  30. {% for category in selected_categories %}
  31. <input type="hidden" name="category_{{ category }}" value="1"/>
  32. {% endfor %}
  33. <input type="hidden" name="q" value="{{ q }}" />
  34. <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
  35. <input type="submit" value="{{ _('next page') }} >>" />
  36. </div>
  37. </form>
  38. <br />
  39. </div>
  40. {% endif %}
  41. </div>
  42. {% endblock %}