From f19b45e0d63d4c18c11b893912946ef2573a17bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ar=C4=B1c=C4=B1?= Date: Sun, 8 Aug 2010 13:29:29 +0000 Subject: [PATCH] Proper messages for users are added under contenttop div. --- .../mustafa_branch/djagen/collector/views.py | 5 +- .../djagen/gezegen/www/layout.css | 2 +- .../djagen/templates/main/base.html | 60 +++++++++++-------- 3 files changed, 41 insertions(+), 26 deletions(-) diff --git a/DJAGEN/branches/mustafa_branch/djagen/collector/views.py b/DJAGEN/branches/mustafa_branch/djagen/collector/views.py index dce141a..a9fbb30 100755 --- a/DJAGEN/branches/mustafa_branch/djagen/collector/views.py +++ b/DJAGEN/branches/mustafa_branch/djagen/collector/views.py @@ -161,7 +161,7 @@ def query(request): 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 words. truncate_words = 250 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), 'run_time':run_time, 'info_area':info_area, + 'archive_year' : archive_year, + 'archive_month' : archive_month, + 'archive_day' : archive_day, 'q_author_name':q_author_name, 'q_author_surname':q_author_surname, 'q_text':q_text, diff --git a/DJAGEN/branches/mustafa_branch/djagen/gezegen/www/layout.css b/DJAGEN/branches/mustafa_branch/djagen/gezegen/www/layout.css index 16c6b88..e5197fc 100755 --- a/DJAGEN/branches/mustafa_branch/djagen/gezegen/www/layout.css +++ b/DJAGEN/branches/mustafa_branch/djagen/gezegen/www/layout.css @@ -182,7 +182,7 @@ body { .contenttop { background:url(img/bg_slice.png) no-repeat scroll transparent; - height:37px; + height:45px; width:950px; } diff --git a/DJAGEN/branches/mustafa_branch/djagen/templates/main/base.html b/DJAGEN/branches/mustafa_branch/djagen/templates/main/base.html index db317ee..610145e 100755 --- a/DJAGEN/branches/mustafa_branch/djagen/templates/main/base.html +++ b/DJAGEN/branches/mustafa_branch/djagen/templates/main/base.html @@ -61,36 +61,48 @@
{% if info_area == "main" %} -

Gezegen her 10 dakikada bir yenilenir. Son güncelleme: {{ run_time.get_run_time }}

+

Gezegen her 10 dakikada bir yenilenir. Son güncelleme: {{ run_time.get_run_time }}

{% endif %} {% if info_area == "archive" %} -

Gezegen arşivi: {{ archive_year }} yılı, - {% if archive_month %} - {{ archive_month }}. ay, - {% endif %} - {% if archive_day %} - {{ archive_day }}. gün - {% endif %} - arşivini gezmektesiniz. Bu arşivde toplam {{ entries_list|length }} blog girdisi mevcuttur.

+ {% if entries_list|length %} +

{% if archive_year %} + {{ archive_year }} yılı, + {% endif %} + {% if archive_month %} + {{ archive_month }}. ayı, + {% endif %} + {% if archive_day %} + {{ archive_day }}. günü + {% endif %} + + {% if q_author_name or q_author_surname %} + {% if q_author_name %} + {{ q_author_name }} isimli, + {% endif %} + {% if q_author_surname %} + {{ q_author_surname }} soyisimli, + {% endif %} + yazara ait + {% endif %} + + {% if q_text %} + içinde "{{ q_text|truncatewords:4 }} ..." 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 {{ entries_list|length }} blog girdisi mevcuttur.

+ {% else %} +

Bu kriterlere ait herhangi bir girdi bulunmuyor!

{% endif %} + {% endif %} {% if info_area == "query" %} -

Aradığınız kriterler: - {% if q_author_name or q_author_surname %} - {% if q_author_name %} - {{ q_author_name }} - {% endif %} - - {% if q_author_surname %} - {{ q_author_surname }} - {% endif %} - isimli yazarlar - {% endif %} - - {% if q_text %} - İçinde {{ q_text|truncatewords:8 }} geçen girdiler - {% endif %}.

+

Lütfen aramak istediğiniz kriterleri giriniz.

{% endif %}