Allow for authenticated non super users to create posts and topics
[edumed.git] / forum / templates / forum / search_results.html
1 {% extends 'pybb/base.html' %}
2 {% load i18n %}
3
4
5 {% block content %}
6     
7         <h1>{% trans 'Search' %}</h1>
8         <form method="get">
9             {{form.q}}
10             <tr>
11                 <td>&nbsp;</td>
12                 <td>
13                     <input type="submit" value="{% trans 'Search' %}">
14                 </td>
15             </tr>
16         </form>
17
18     {% if query %}
19         <hr/>
20         {% for result in page.object_list %}
21             <p class="search-result">
22                 <strong>Temat:</strong> <a href="{{ result.object.get_absolute_url }}">{{ result.object.topic.name }}</a><br/>
23                 {% autoescape off %}
24                 {% for snippet in result.highlighted.text %}
25                     {{snippet}}{% if not forloop.last %} <strong>...</strong> {% endif %}
26                 {% endfor %}
27                 {% endautoescape %}
28             </p>
29         {% empty %}
30             <p>Brak wyników.</p>
31         {% endfor %}
32
33         {% if page.has_previous or page.has_next %}
34             <div>
35                 {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Poprzednie{% if page.has_previous %}</a>{% endif %}
36                 |
37                 {% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Następne &raquo;{% if page.has_next %}</a>{% endif %}
38             </div>
39         {% endif %}
40     {% endif %}
41 {% endblock %}