From: Radek Czajka Date: Thu, 21 Feb 2013 15:57:17 +0000 (+0100) Subject: random fixes X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/fac024263e4791a32923d7ac393318c653bc2eeb random fixes --- diff --git a/events/locale/pl/LC_MESSAGES/django.mo b/events/locale/pl/LC_MESSAGES/django.mo index 0886cec..5c03eff 100644 Binary files a/events/locale/pl/LC_MESSAGES/django.mo and b/events/locale/pl/LC_MESSAGES/django.mo differ diff --git a/events/locale/pl/LC_MESSAGES/django.po b/events/locale/pl/LC_MESSAGES/django.po index 9f9987d..03796c6 100644 --- a/events/locale/pl/LC_MESSAGES/django.po +++ b/events/locale/pl/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: prawokultury-events\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-10-24 15:00+0200\n" -"PO-Revision-Date: 2012-10-24 15:00+0100\n" +"PO-Revision-Date: 2013-02-21 16:38+0100\n" "Last-Translator: Radek Czajka \n" "Language-Team: FNP \n" "Language: \n" @@ -72,7 +72,7 @@ msgstr "Wydarzenia" #: templates/events/event_list.html:18 msgid "see upcoming events" -msgstr "zobaczy nadchodzące wydarzenia" +msgstr "zobacz nadchodzące wydarzenia" #: templates/events/event_list.html:22 msgid "see past events" diff --git a/prawokultury/static/css/base.css b/prawokultury/static/css/base.css index 043d549..217a2fd 100644 --- a/prawokultury/static/css/base.css +++ b/prawokultury/static/css/base.css @@ -23,6 +23,10 @@ h1 { color: #01519a; font-size: 2em; } +h2 { + font-size: 1.2em; + color: #01519a; } + .warning { border: 1px solid #ddd; padding: 1em; @@ -47,3 +51,6 @@ h1 { vertical-align: middle; } .entry-wrapped .gallery-image img { margin: 0; } + +.questions li { + margin-bottom: 1em; } diff --git a/prawokultury/static/css/promobox.css b/prawokultury/static/css/promobox.css index 15afcd0..f45a6fe 100644 --- a/prawokultury/static/css/promobox.css +++ b/prawokultury/static/css/promobox.css @@ -67,7 +67,8 @@ ul.promobox { overflow: hidden; } .promobox-info h2 { margin-top: 0; - font-size: 1.5em; } + font-size: 1.5em; + color: white; } .promobox-info .lead { font-size: 1.2em; line-height: 1.1em; } diff --git a/prawokultury/static/img/aigrain.jpg b/prawokultury/static/img/aigrain.jpg new file mode 100644 index 0000000..c794eb1 Binary files /dev/null and b/prawokultury/static/img/aigrain.jpg differ diff --git a/questions/search_indexes.py b/questions/search_indexes.py new file mode 100755 index 0000000..1e36f41 --- /dev/null +++ b/questions/search_indexes.py @@ -0,0 +1,16 @@ +import datetime +from django.conf import settings +from haystack import indexes +from .models import Question + + +class QuestionIndex(indexes.RealTimeSearchIndex, indexes.Indexable): + text = indexes.CharField(document=True, model_attr="__unicode__") + answer = indexes.CharField(model_attr="answer") + + def get_model(self): + return Question + + def index_queryset(self): + """Used when the entire index for model is updated.""" + return self.get_model().objects.filter(published=True) diff --git a/questions/templates/questions/ack_mail.html b/questions/templates/questions/ack_mail.html index d3d742e..23eae4f 100755 --- a/questions/templates/questions/ack_mail.html +++ b/questions/templates/questions/ack_mail.html @@ -3,7 +3,7 @@
{{ question.question|linebreaks }}
-

Dyżur prawnika w serwisie Prawo Kultury odbywa się we wtorki, prosimy więc +

Dyżur prawnika w serwisie Prawo Kultury odbywa się w środy, prosimy więc o cierpliwość. Możemy nie być w stanie odpowiedzieć na wszystkie pytania. Odpowiedzi są wysyłane e-mailem, ale zachęcamy też do śledzenia strony http://PrawoKultury.pl.

diff --git a/questions/templates/questions/ack_mail.txt b/questions/templates/questions/ack_mail.txt index 2c65d1b..6b0a771 100755 --- a/questions/templates/questions/ack_mail.txt +++ b/questions/templates/questions/ack_mail.txt @@ -3,7 +3,7 @@ {{ question.question|safe }} -Dyżur prawnika w serwisie Prawo Kultury odbywa się we wtorki, prosimy więc +Dyżur prawnika w serwisie Prawo Kultury odbywa się w środy, prosimy więc o cierpliwość. Możemy nie być w stanie odpowiedzieć na wszystkie pytania. Odpowiedzi są wysyłane e-mailem, ale zachęcamy też do śledzenia strony http://PrawoKultury.pl @@ -12,4 +12,4 @@ Dziękujemy za skontaktowanie się z nami! -- {{ site }} -{% endlanguage %} \ No newline at end of file +{% endlanguage %} diff --git a/questions/templates/questions/question_detail.html b/questions/templates/questions/question_detail.html index 95b1467..2fc5ce0 100755 --- a/questions/templates/questions/question_detail.html +++ b/questions/templates/questions/question_detail.html @@ -3,7 +3,7 @@ {% block "titleextra" %}{{ question|linebreaksbr }} :: {% endblock %} {% block "body" %} -

{{ question }}

+

{{ question|linebreaksbr }}

{{ question.answer }} diff --git a/questions/templates/questions/question_form.html b/questions/templates/questions/question_form.html index da6b1ca..5f4b7f8 100755 --- a/questions/templates/questions/question_form.html +++ b/questions/templates/questions/question_form.html @@ -11,7 +11,7 @@ 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 +telefonicznie, dzwoniąc w środy 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 diff --git a/questions/templates/questions/question_list.html b/questions/templates/questions/question_list.html index 284fcc4..4cad0e9 100755 --- a/questions/templates/questions/question_list.html +++ b/questions/templates/questions/question_list.html @@ -12,6 +12,20 @@ odpowiedzi w za pomocą specjalnego formularza. +

Na pytania odpowiada dr Krzysztof Siewicz, prawnik +specjalizujący się w prawnych aspektach przetwarzania informacji. Dr +Siewicz jest pracownikiem Centrum Otwartej Nauki ICM UW, adiunktem w +Katedrze Prawa Informatycznego WPiA UKSW oraz of counsel kancelarii +prawnej GWW LEGAL.

+ +

Dr Krzysztof Siewicz ukończył Wydział Prawa i Administracji +Uniwersytetu Warszawskiego oraz uzyskał dyplom LLM Central European +University w Budapeszcie. Doktorat o ochronie wolności użytkowników +oprogramowania obronił na Uniwersytecie w Lejdzie (Holandia). Jest +autorem szeregu publikacji naukowych poświęconych korzystaniu z +technologii informacyjno-komunikacyjnych oraz posiada wieloletnie +doświadczenie doradcze w tej tematyce.

+

Odpowiedzi na już zadane pytania:

    diff --git a/requirements.txt b/requirements.txt index d0bdc3b..1da2653 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ sorl-thumbnail>=11.09,<12 django-pagination django-honeypot -django-migdal>=0.3,<0.4 +django-migdal>=0.3.1,<0.4 fnpdjango>=0.1.4,<0.2 textile