{% extends "base.html" %} {% load url from future %} {% block title %} Search Results {% endblock %} {% block pagestyle %} {% endblock %} {% block pagescripts %} {% endblock %} {% block content %} {% if course %} back to {{ course.name }} {% endif %} YOU SEARCHED FOR {{ query }} {% if course %} IN COURSE {{ course.name }} {% endif %} {% if object_list %} Sort by: Date Popularity Name Tags Preview {% for tuple in object_list %} {% include 'notes/note_list_entry.html' with note=tuple.0 note_preview=tuple.1 %} {% endfor %} {% else %} Sorry! No results were found. {% if error %} There was an error with your search. {% endif %} {% endif %} {% if has_prev %} Previous {% endif %} {% if has_next %} Next {% endif %} {% endblock %}