Proper messages for users are added under contenttop div.
This commit is contained in:
parent
10905bc019
commit
f19b45e0d6
|
@ -161,7 +161,7 @@ def query(request):
|
||||||
|
|
||||||
|
|
||||||
def archive(request,archive_year=None,archive_month=None,archive_day=None):
|
def archive(request,archive_year=None,archive_month=None,archive_day=None):
|
||||||
info_area = 'query'
|
info_area = 'archive'
|
||||||
# This setting gets the content truncated which contains more than <truncate_words> words.
|
# This setting gets the content truncated which contains more than <truncate_words> words.
|
||||||
truncate_words = 250
|
truncate_words = 250
|
||||||
items_per_page = 25
|
items_per_page = 25
|
||||||
|
@ -255,6 +255,9 @@ def archive(request,archive_year=None,archive_month=None,archive_day=None):
|
||||||
'items_per_page':repr(items_per_page),
|
'items_per_page':repr(items_per_page),
|
||||||
'run_time':run_time,
|
'run_time':run_time,
|
||||||
'info_area':info_area,
|
'info_area':info_area,
|
||||||
|
'archive_year' : archive_year,
|
||||||
|
'archive_month' : archive_month,
|
||||||
|
'archive_day' : archive_day,
|
||||||
'q_author_name':q_author_name,
|
'q_author_name':q_author_name,
|
||||||
'q_author_surname':q_author_surname,
|
'q_author_surname':q_author_surname,
|
||||||
'q_text':q_text,
|
'q_text':q_text,
|
||||||
|
|
|
@ -182,7 +182,7 @@ body {
|
||||||
|
|
||||||
.contenttop {
|
.contenttop {
|
||||||
background:url(img/bg_slice.png) no-repeat scroll transparent;
|
background:url(img/bg_slice.png) no-repeat scroll transparent;
|
||||||
height:37px;
|
height:45px;
|
||||||
width:950px;
|
width:950px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,36 +61,48 @@
|
||||||
<div class="contenttop">
|
<div class="contenttop">
|
||||||
|
|
||||||
{% if info_area == "main" %}
|
{% if info_area == "main" %}
|
||||||
<p>Gezegen her 10 dakikada bir yenilenir. Son güncelleme: {{ run_time.get_run_time }}</p>
|
<p>Gezegen her <b>10</b> dakikada bir yenilenir. Son güncelleme: <b>{{ run_time.get_run_time }}</b></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if info_area == "archive" %}
|
{% if info_area == "archive" %}
|
||||||
<p>Gezegen arşivi: <b>{{ archive_year }}</b> yılı,
|
{% if entries_list|length %}
|
||||||
{% if archive_month %}
|
<p>{% if archive_year %}
|
||||||
<b>{{ archive_month }}</b>. ay,
|
<b>{{ archive_year }}</b> yılı,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if archive_day %}
|
{% if archive_month %}
|
||||||
<b>{{ archive_day }}</b>. gün
|
<b>{{ archive_month }}</b>. ayı,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
arşivini gezmektesiniz. Bu arşivde toplam <b>{{ entries_list|length }}</b> blog girdisi mevcuttur.</p>
|
{% if archive_day %}
|
||||||
|
<b>{{ archive_day }}</b>. günü
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if q_author_name or q_author_surname %}
|
||||||
|
{% if q_author_name %}
|
||||||
|
<b>{{ q_author_name }}</b> isimli,
|
||||||
|
{% endif %}
|
||||||
|
{% if q_author_surname %}
|
||||||
|
<b>{{ q_author_surname }}</b> soyisimli,
|
||||||
|
{% endif %}
|
||||||
|
yazara ait
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if q_text %}
|
||||||
|
içinde <b>"{{ q_text|truncatewords:4 }} ..."</b> geçen yazıların olduğu
|
||||||
|
{% endif %}
|
||||||
|
{% if archive_year or q_author_name or q_author_surname or q_text %}
|
||||||
|
gezegen
|
||||||
|
{% else %}
|
||||||
|
Gezegen
|
||||||
|
{% endif %}
|
||||||
|
arşivini gezmektesiniz.
|
||||||
|
Bu arşivde toplam <b>{{ entries_list|length }}</b> blog girdisi mevcuttur.</p>
|
||||||
|
{% else %}
|
||||||
|
<p><img src="/djagenmedia/img/warning.png" width="25" height="25" /> Bu kriterlere ait herhangi bir girdi <b>bulunmuyor</b>!</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if info_area == "query" %}
|
{% if info_area == "query" %}
|
||||||
<p>Aradığınız kriterler:
|
<p>Lütfen aramak istediğiniz kriterleri giriniz.</p>
|
||||||
{% if q_author_name or q_author_surname %}
|
|
||||||
{% if q_author_name %}
|
|
||||||
<b>{{ q_author_name }}</b>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if q_author_surname %}
|
|
||||||
<b> {{ q_author_surname }}</b>
|
|
||||||
{% endif %}
|
|
||||||
isimli yazarlar
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if q_text %}
|
|
||||||
İçinde <b>{{ q_text|truncatewords:8 }}</b> geçen girdiler
|
|
||||||
{% endif %}.</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user