lkd-planet/DJAGEN/trunk/djagen/templates/main/searchresult.html
2011-07-02 15:23:42 +00:00

103 lines
3.6 KiB
HTML
Executable File

{% extends "main/base.html" %}
{% block body %}
{% if entries_list|length %}
{% for entry in p_entries_list.object_list|slice:items_per_page %}
{% autoescape off %}
{% ifequal entry.entry_id.is_approved 1 %}
{% ifchanged entry.date.day entry.date.month entry.date.year %}<div class="separator"></div>{% endifchanged %}
{% ifchanged %}<h2 class="date">{{ entry.date|date:"d F Y" }}</h2>{% endifchanged %}
<div class="innercontent">
<a href="{{ entry.entry_id.channel_link }}" title="{{ entry.entry_id.channel_title }}"><img class="face" src="/djagenmedia/images/heads/{{ entry.entry_id.author_face|default:"nobody.png" }}" title="{{ entry.entry_id.author_name }} {{ entry.entry_id.author_surname }}" width="80" height="80" /></a>
<h1 class="title"><a href="{{ entry.link }} ">{{ entry.title }}</a></h1>
<p class="yazaneden">
Yazar:&nbsp;<a href="{{ entry.entry_id.channel_link }}" title="{{ entry.entry_id.channel_title }}">{{ entry.entry_id.author_name }} {{ entry.entry_id.author_surname }}</a>
Tarih:&nbsp;<span class="blogdate">{{ entry.date|date:"d F Y H:i" }}</span>
</p>
<div class="blogcontent">
{{ entry.content_html|truncatewords_html:truncate_words }}
</div>
{% endifequal %}
{% endautoescape %}
</div>
{% endfor %}
<div class="pagination">
<span class="step-links">
{% if q_author_name or q_author_surname or q_text %}
<span class="current">
Sayfa <b>{{ p_entries_list.number }}</b> / <b>{{ p_entries_list.paginator.num_pages }}</b>
</span>
<div class="pagelist" style="text-align:center">
{% if p_entries_list.has_previous %}
<a href="?q_author_name={{ q_author_name }}&q_author_surname={{ q_author_surname }}&q_text={{ q_text }}&page={{ p_entries_list.previous_page_number }}">Geri</a>
{% endif %}
|
{% for pNum in p_entries_list.paginator.page_range %}
{% ifequal pNum p_entries_list.number %}
{{ pNum }}
{% else %}
<a href="?page={{ pNum }}">{{ pNum }}</a>
{% endifequal %}
{% endfor %}
|
{% if p_entries_list.has_next %}
<a href="?q_author_name={{ q_author_name }}&q_author_surname={{ q_author_surname }}&q_text={{ q_text }}&page={{ p_entries_list.next_page_number }}">İleri</a>
{% endif %}
</div>
</span>
</div>
{% else %}
<span class="current">
Sayfa <b>{{ p_entries_list.number }}</b> / <b>{{ p_entries_list.paginator.num_pages }}</b>
</span>
<div class="pagelist" style="text-align:center">
{% if p_entries_list.has_previous %}
<a href="?q_author_name=?page={{ p_entries_list.previous_page_number }}">Geri</a>
{% endif %}
|
{% for pNum in p_entries_list.paginator.page_range %}
{% ifequal pNum p_entries_list.number %}
{{ pNum }}
{% else %}
<a href="?page={{ pNum }}">{{ pNum }}</a>
{% endifequal %}
{% endfor %}
|
{% if p_entries_list.has_next %}
<a href="?page={{ p_entries_list.next_page_number }}">İleri</a>
{% endif %}
</div>
</span>
</div>
{% endif %}
{% else %}
<br>
<br>
<h1><center>Gösterecek veri yok!</center></h1>
<br>
{% endif %}
{% endblock %}