From af3e9caaf16b84899e825608d97d84431d8e9454 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 29 Jan 2013 16:19:44 +0100 Subject: [PATCH] Minor changes --- prawokultury/menu_items.py | 4 ++-- prawokultury/static/css/base.scss | 10 +++++++++ prawokultury/static/css/promobox.scss | 1 + questions/admin.py | 1 + questions/templates/questions/ack_mail.html | 4 ++-- .../templates/questions/answered_mail.html | 4 ++-- .../templates/questions/question_detail.html | 4 ++-- .../templates/questions/question_form.html | 22 ++++++++++--------- .../templates/questions/question_list.html | 17 ++++++++------ 9 files changed, 42 insertions(+), 25 deletions(-) diff --git a/prawokultury/menu_items.py b/prawokultury/menu_items.py index 8f5d806..2a85fd6 100644 --- a/prawokultury/menu_items.py +++ b/prawokultury/menu_items.py @@ -23,9 +23,9 @@ ITEMS.append(ObjectMenuItem( title=_('Positions') )) -ITEMS.append(MenuItem(reverse_lazy('questions_form'), _('First aid'), +ITEMS.append(MenuItem(reverse_lazy('questions'), _('First aid'), more_urls=( - reverse_lazy('questions'), + reverse_lazy('questions_form'), #reverse_lazy('questions_question'), reverse_lazy('questions_thanks'), ))) diff --git a/prawokultury/static/css/base.scss b/prawokultury/static/css/base.scss index 73f82a2..5b08be6 100644 --- a/prawokultury/static/css/base.scss +++ b/prawokultury/static/css/base.scss @@ -29,6 +29,10 @@ h1 { font-size: 2em; } +h2 { + font-size: 1.2em; + color: #01519a; +} .warning { border: 1px solid #ddd; @@ -49,3 +53,9 @@ h1 { .gallery-image img{margin: 0;} } + +.questions { + li { + margin-bottom: 1em; + } +} diff --git a/prawokultury/static/css/promobox.scss b/prawokultury/static/css/promobox.scss index 6ea75eb..4171954 100644 --- a/prawokultury/static/css/promobox.scss +++ b/prawokultury/static/css/promobox.scss @@ -77,6 +77,7 @@ ul.promobox { h2 { margin-top: 0; font-size: 1.5em; + color: white; } .lead { font-size: 1.2em; diff --git a/questions/admin.py b/questions/admin.py index ae6ac1d..7d81a20 100755 --- a/questions/admin.py +++ b/questions/admin.py @@ -6,6 +6,7 @@ class QuestionAdmin(admin.ModelAdmin): list_filter = ('approved', 'answered', 'published') list_display = ('question', 'email', 'created_at', 'approved', 'answered', 'published') date_hierarchy = 'created_at' + search_fields = ('question', 'edited_question', 'answer', 'email') fields = ( ('email', 'created_at', 'changed_at'), 'question', diff --git a/questions/templates/questions/ack_mail.html b/questions/templates/questions/ack_mail.html index d94bf73..d3d742e 100755 --- a/questions/templates/questions/ack_mail.html +++ b/questions/templates/questions/ack_mail.html @@ -1,7 +1,7 @@ {% load i18n %}{% language 'pl' %}

{{ question.created_at }} zarejestrowaliśmy w serwisie PrawoKultury.pl Twoje pytanie:

-
{{ question.question }}
+
{{ question.question|linebreaks }}

Dyżur prawnika w serwisie Prawo Kultury odbywa się we wtorki, prosimy więc o cierpliwość. Możemy nie być w stanie odpowiedzieć na wszystkie pytania. @@ -13,4 +13,4 @@ Odpowiedzi są wysyłane e-mailem, ale zachęcamy też do śledzenia strony

--
{{ site }}
{% endlanguage %} -

\ No newline at end of file +

diff --git a/questions/templates/questions/answered_mail.html b/questions/templates/questions/answered_mail.html index fa3f57a..759a053 100755 --- a/questions/templates/questions/answered_mail.html +++ b/questions/templates/questions/answered_mail.html @@ -1,7 +1,7 @@ {% load i18n %}{% language 'pl' %}

{{ question.created_at }} zadałeś/zadałaś pytanie:

-
{{ question.question }}
+
{{ question.question|linebreaks }}

Odpowiedź:

@@ -18,4 +18,4 @@

--
{{ site }}
{% endlanguage %} -

\ No newline at end of file +

diff --git a/questions/templates/questions/question_detail.html b/questions/templates/questions/question_detail.html index 5c6535a..95b1467 100755 --- a/questions/templates/questions/question_detail.html +++ b/questions/templates/questions/question_detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load url from future %} -{% block "titleextra" %}{{ question }} :: {% endblock %} +{% block "titleextra" %}{{ question|linebreaksbr }} :: {% endblock %} {% block "body" %}

{{ question }}

@@ -11,4 +11,4 @@

Wróć do listy pytań.

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/questions/templates/questions/question_form.html b/questions/templates/questions/question_form.html index 7af6482..da6b1ca 100755 --- a/questions/templates/questions/question_form.html +++ b/questions/templates/questions/question_form.html @@ -8,17 +8,19 @@

Jeżeli masz pytanie dotyczące prawa autorskiego, na które nie znalazłeś/znalazłaś -odpowiedzi w przewodniku -po prawie autorskim, możesz je nam zadać -za pomocą poniższego formularza (od 22 stycznia ruszy także linia telefoniczna). +odpowiedzi w przewodniku +po prawie autorskim ani wśród udzielonych już odpowiedzi, możesz je nam zadać +za pomocą poniższego formularza. Możesz także zgłosić swoje pytanie +telefonicznie, dzwoniąc we wtorki w godz. 11-13 pod numer ++48 516 519 697. Wybrane pytania (w razie potrzeby odpowiednio przeformułowane) oraz odpowiedzi na te pytania będą publikowane na stronie prawokultury.pl. Możesz zostawić swoje -dane kontaktowe (adres e-mail), jeżeli chcesz, żebyśmy skontaktowali się z Tobą -w przypadku wątpliwości co do Twojego pytania. Dane kontaktowe nie będą publikowane. -Możemy nie być w stanie odpowiedzieć na wszystkie pytania, -a w przypadku podobnych pytań możemy odsyłać do wcześniejszych odpowiedzi. -Odpowiedzi na pytania nie należy traktować jak porad prawnych. Jeżeli poszukujesz -porady prawnej skontaktuj się z prawnikiem.

+dane kontaktowe (adres e-mail), jeżeli chcesz, żebyśmy wysłali Ci odpowiedź bezpośrednio lub skontaktowali się z Tobą +w przypadku wątpliwości co do Twojego pytania. Dane kontaktowe nie będą publikowane.

+ +

Możemy nie być w stanie odpowiedzieć na wszystkie pytania, +a w przypadku podobnych pytań możemy odsyłać do wcześniejszych odpowiedzi. +Odpowiedzi na pytania nie należy traktować jak porad prawnych. Nie prowadzimy indywidualnych konsultacji prawnych.

Administratorem danych osobowych przetwarzanych w związku z funkcjonowaniem tego serwisu jest Fundacja Nowoczesna Polska [ul. Marszałkowska 84/92 lok. 125, @@ -38,4 +40,4 @@ przysługuje prawo dostępu do treści swoich danych oraz ich poprawiania.

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/questions/templates/questions/question_list.html b/questions/templates/questions/question_list.html index 273d94f..284fcc4 100755 --- a/questions/templates/questions/question_list.html +++ b/questions/templates/questions/question_list.html @@ -6,16 +6,19 @@

Pierwsza pomoc w prawie autorskim

-

Jeśli rozwiązania Twojego problemu nie ma na tej stronie, -zajrzyj do -naszego przewodnika. Jeśli i to nie pomoże, -zadaj nam pytanie.

- -
-{% endblock %} \ No newline at end of file +{% endblock %} -- 2.20.1