From: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl> 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?hp=af3e9caaf16b84899e825608d97d84431d8e9454 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 <radoslaw.czajka@nowoczesnapolska.org.pl>\n" "Language-Team: FNP <fundacja@nowoczesnapolska.org.pl>\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 @@ <blockquote>{{ question.question|linebreaks }}</blockquote> -<p>Dyżur prawnika w serwisie Prawo Kultury odbywa siÄ we wtorki, prosimy wiÄc +<p>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 <a href="http://prawokultury.pl">http://PrawoKultury.pl</a>.</p> 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" %} -<h1>{{ question }}</h1> +<h1>{{ question|linebreaksbr }}</h1> <div class="normal"> {{ 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 <strong><a href="{% url 'migdal_entry_publications' 'pierwsza-pomoc' %}">przewodniku po prawie autorskim</a></strong> ani wÅród <strong><a href="{% url 'questions' %}">udzielonych już odpowiedzi</a></strong>, możesz je nam zadaÄ za pomocÄ poniższego formularza. Możesz także zgÅosiÄ swoje pytanie -telefonicznie, dzwoniÄ c <strong>we wtorki w godz. 11-13 pod numer +telefonicznie, dzwoniÄ c <strong>w Årody w godz. 11-13 pod numer <a href="tel:+48-516-519-697">+48 516 519 697</a></strong>. 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 <strong><a href="{% url 'migdal_entry_publications' 'pierwsza-pomoc po prawie autorskim</a></strong>, możesz je nam zadaÄ <strong><a href="{% url 'questions_form' %}">za pomocÄ specjalnego formularza</a></strong>. +<p>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.</p> + +<p>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.</p> + <h2>Odpowiedzi na już zadane pytania:</h2> <ul class='questions'> 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