mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-27 11:44:37 +00:00
37 lines
999 B
HTML
37 lines
999 B
HTML
{% extends "blog/base_blog.html" %}
|
|
|
|
|
|
{% block title %}Post search{% endblock %}
|
|
{% block body_class %}{{ block.super }} post_search{% endblock %}
|
|
|
|
|
|
{% block main-content_title %}
|
|
<h2>Search</h2>
|
|
{% endblock %}
|
|
|
|
|
|
{% block main-content %}
|
|
<form action="." method="get" id="post_search_form">
|
|
<p>
|
|
<input type="text" name="q" value="{{ search_term }}" id="search">
|
|
<input type="submit" class="button" value="Search">
|
|
</p>
|
|
</form>
|
|
|
|
{% if message %}
|
|
<p class="message">{{ message }}</p>
|
|
{% endif %}
|
|
|
|
{% if object_list %}
|
|
<div class="post_list">
|
|
{% for post in object_list %}
|
|
<div>
|
|
<h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
|
|
<p class="date">{{ post.publish|date:"Y F d" }}</p>
|
|
<p class="tease">{{ post.tease }}</p>
|
|
<p class="comments">{% if comment_count %}{{ comment_count }} comment{{ comment_count|pluralize }}{% endif %}</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %} |