Allow setting author for questions and editing some text chunks.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Tue, 26 Nov 2013 13:06:52 +0000 (14:06 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Tue, 26 Nov 2013 13:06:52 +0000 (14:06 +0100)
39 files changed:
chunks/__init__.py [new file with mode: 0644]
chunks/admin.py [new file with mode: 0644]
chunks/locale/de/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/de/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/en/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/en/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/es/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/es/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/fr/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/fr/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/it/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/it/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/jp/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/jp/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/lt/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/lt/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/pl/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/pl/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/ru/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/ru/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/locale/uk/LC_MESSAGES/django.mo [new file with mode: 0644]
chunks/locale/uk/LC_MESSAGES/django.po [new file with mode: 0644]
chunks/migrations/0001_initial.py [new file with mode: 0644]
chunks/migrations/__init__.py [new file with mode: 0644]
chunks/models.py [new file with mode: 0644]
chunks/templatetags/__init__.py [new file with mode: 0644]
chunks/templatetags/chunks.py [new file with mode: 0644]
prawokultury/settings.d/30-apps.py
prawokultury/templates/base.html
questions/admin.py
questions/locale/pl/LC_MESSAGES/django.mo
questions/locale/pl/LC_MESSAGES/django.po
questions/migrations/0006_auto__del_unique_tag_name__add_field_question_answered_by.py [new file with mode: 0644]
questions/models.py
questions/templates/questions/ack_mail.html
questions/templates/questions/ack_mail.txt
questions/templates/questions/question_detail.html
questions/templates/questions/question_form.html
questions/templates/questions/question_list.html

diff --git a/chunks/__init__.py b/chunks/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/chunks/admin.py b/chunks/admin.py
new file mode 100644 (file)
index 0000000..fc45cb7
--- /dev/null
@@ -0,0 +1,17 @@
+from django.contrib import admin
+from fnpdjango.utils.models.translation import translated_fields
+from .models import Chunk, Attachment
+
+
+class ChunkAdmin(admin.ModelAdmin):
+    list_display = ('key', 'description',)
+    search_fields = ('key', ) + translated_fields(('content',))
+
+admin.site.register(Chunk, ChunkAdmin)
+
+
+class AttachmentAdmin(admin.ModelAdmin):
+    list_display = ('key',)
+    search_fields = ('key',)
+
+admin.site.register(Attachment, AttachmentAdmin)
\ No newline at end of file
diff --git a/chunks/locale/de/LC_MESSAGES/django.mo b/chunks/locale/de/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..be5f8ae
Binary files /dev/null and b/chunks/locale/de/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/de/LC_MESSAGES/django.po b/chunks/locale/de/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..7fbf84e
--- /dev/null
@@ -0,0 +1,74 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-04-11 22:56+0100\n"
+"Last-Translator: Kamil <kjaklukowski@gmail.com>\n"
+"Language-Team: \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "Schlüssel"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "Die einzigartige Bezeichnung für dieses Chunk von Inhalten"
+
+#: models.py:12
+msgid "description"
+msgstr "Beschreibung"
+
+#: models.py:13
+msgid "content"
+msgstr "Inhalt"
+
+#: models.py:17
+msgid "chunk"
+msgstr "Chunk"
+
+#: models.py:18
+msgid "chunks"
+msgstr "Chunks"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Die einzigartige Bezeichnung für diese Beilage"
+
+#: models.py:38
+msgid "attachment"
+msgstr "Beilage"
+
+#: models.py:38
+msgid "attachments"
+msgstr "Beilagen"
+
+#~ msgid "title"
+#~ msgstr "Titel"
+
+#~ msgid "slug"
+#~ msgstr "Slug"
+
+#~ msgid "file"
+#~ msgstr "Datei"
+
+#~ msgid "author"
+#~ msgstr "Autor"
+
+#~ msgid "slideshare ID"
+#~ msgstr "Dia-ID"
+
+#~ msgid "HTML"
+#~ msgstr "HTML"
+
+#~ msgid "document"
+#~ msgstr "Dokument"
diff --git a/chunks/locale/en/LC_MESSAGES/django.mo b/chunks/locale/en/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..a81e430
Binary files /dev/null and b/chunks/locale/en/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/en/LC_MESSAGES/django.po b/chunks/locale/en/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..e81d48a
--- /dev/null
@@ -0,0 +1,53 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-03-04 20:05+0100\n"
+"Last-Translator: xxx <xxx>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "key"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "A unique name for this piece of content"
+
+#: models.py:12
+msgid "description"
+msgstr "description"
+
+#: models.py:13
+msgid "content"
+msgstr "content"
+
+#: models.py:17
+msgid "chunk"
+msgstr "piece"
+
+#: models.py:18
+msgid "chunks"
+msgstr "pieces"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "A unique name for this attachment"
+
+#: models.py:38
+msgid "attachment"
+msgstr "attachment"
+
+#: models.py:38
+msgid "attachments"
+msgstr "attachments"
diff --git a/chunks/locale/es/LC_MESSAGES/django.mo b/chunks/locale/es/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..83f03fb
Binary files /dev/null and b/chunks/locale/es/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/es/LC_MESSAGES/django.po b/chunks/locale/es/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..4130ea1
--- /dev/null
@@ -0,0 +1,53 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-02-18 13:02+0100\n"
+"Last-Translator: Anna Jopp <aniajopp@gmail.com>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "clave"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "El nombre único para este elemento del contenido"
+
+#: models.py:12
+msgid "description"
+msgstr "descripción"
+
+#: models.py:13
+msgid "content"
+msgstr "contenido"
+
+#: models.py:17
+msgid "chunk"
+msgstr "elemento"
+
+#: models.py:18
+msgid "chunks"
+msgstr "elementos"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "El nombre único para este archivo adjunto"
+
+#: models.py:38
+msgid "attachment"
+msgstr "archivo adjunto"
+
+#: models.py:38
+msgid "attachments"
+msgstr "archivos adjuntos"
diff --git a/chunks/locale/fr/LC_MESSAGES/django.mo b/chunks/locale/fr/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..1ef6af2
Binary files /dev/null and b/chunks/locale/fr/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/fr/LC_MESSAGES/django.po b/chunks/locale/fr/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..150a92c
--- /dev/null
@@ -0,0 +1,53 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-02-22 20:52+0100\n"
+"Last-Translator: Ela Janota <amarillis5@wp.pl>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "clé"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "Un nom unique pour ce fragment du contenu"
+
+#: models.py:12
+msgid "description"
+msgstr "description"
+
+#: models.py:13
+msgid "content"
+msgstr "contenu"
+
+#: models.py:17
+msgid "chunk"
+msgstr "fragment"
+
+#: models.py:18
+msgid "chunks"
+msgstr "fragments"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Un nom unique pour cette pièce jointe"
+
+#: models.py:38
+msgid "attachment"
+msgstr "pièce jointe"
+
+#: models.py:38
+msgid "attachments"
+msgstr "pièces jointes"
diff --git a/chunks/locale/it/LC_MESSAGES/django.mo b/chunks/locale/it/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..a07410f
Binary files /dev/null and b/chunks/locale/it/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/it/LC_MESSAGES/django.po b/chunks/locale/it/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..4598d53
--- /dev/null
@@ -0,0 +1,54 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-02-21 16:52+0100\n"
+"Last-Translator: xxx\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "Chiave"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "un nome unico per questo allegato"
+
+#: models.py:12
+msgid "description"
+msgstr "descrizione"
+
+#: models.py:13
+msgid "content"
+msgstr "contenuto"
+
+#: models.py:17
+msgid "chunk"
+msgstr "blocco"
+
+#: models.py:18
+msgid "chunks"
+msgstr "blocchi"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Un nome unico per questo allegato"
+
+#: models.py:38
+msgid "attachment"
+msgstr "allegato"
+
+#: models.py:38
+msgid "attachments"
+msgstr "allegati"
diff --git a/chunks/locale/jp/LC_MESSAGES/django.mo b/chunks/locale/jp/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..ad2faa7
Binary files /dev/null and b/chunks/locale/jp/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/jp/LC_MESSAGES/django.po b/chunks/locale/jp/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..dcc303c
--- /dev/null
@@ -0,0 +1,54 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr ""
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr ""
+
+#: models.py:12
+msgid "description"
+msgstr ""
+
+#: models.py:13
+msgid "content"
+msgstr ""
+
+#: models.py:17
+msgid "chunk"
+msgstr ""
+
+#: models.py:18
+msgid "chunks"
+msgstr ""
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr ""
+
+#: models.py:38
+msgid "attachment"
+msgstr ""
+
+#: models.py:38
+msgid "attachments"
+msgstr ""
diff --git a/chunks/locale/lt/LC_MESSAGES/django.mo b/chunks/locale/lt/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..6131fd5
Binary files /dev/null and b/chunks/locale/lt/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/lt/LC_MESSAGES/django.po b/chunks/locale/lt/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..a78804a
--- /dev/null
@@ -0,0 +1,54 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-03-01 16:13+0100\n"
+"Last-Translator: Aneta\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Translated-Using: django-rosetta 0.5.3\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "raktas"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "Unikalus šio turinio gabalo pavadnimas"
+
+#: models.py:12
+msgid "description"
+msgstr "aprašymas"
+
+#: models.py:13
+msgid "content"
+msgstr "turinys"
+
+#: models.py:17
+msgid "chunk"
+msgstr "gabalas"
+
+#: models.py:18
+msgid "chunks"
+msgstr "gabalai"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Unikalus šio priedo pavadnimas"
+
+#: models.py:38
+msgid "attachment"
+msgstr "priedas"
+
+#: models.py:38
+msgid "attachments"
+msgstr "priedai"
diff --git a/chunks/locale/pl/LC_MESSAGES/django.mo b/chunks/locale/pl/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..2cc4840
Binary files /dev/null and b/chunks/locale/pl/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/pl/LC_MESSAGES/django.po b/chunks/locale/pl/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..4e0416a
--- /dev/null
@@ -0,0 +1,58 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-11-26 14:00+0100\n"
+"PO-Revision-Date: 2013-11-26 14:01+0100\n"
+"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Translated-Using: django-rosetta 0.5.3\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: models.py:13 models.py:39
+msgid "key"
+msgstr "klucz"
+
+#: models.py:13
+msgid "A unique name for this chunk of content"
+msgstr "Unikalna nazwa dla tego kawałka treści"
+
+#: models.py:14
+msgid "description"
+msgstr "opis"
+
+#: models.py:18
+msgid "chunk"
+msgstr "kawałek"
+
+#: models.py:19
+msgid "chunks"
+msgstr "kawałki"
+
+#: models.py:33
+msgid "content"
+msgstr "zawartość"
+
+#: models.py:34
+msgid "Use <a href=\"http://txstyle.org/\">Textile</a> syntax."
+msgstr "Użyj składni <a href=\"http://txstyle.org/\">Textile</a>."
+
+#: models.py:39
+msgid "A unique name for this attachment"
+msgstr "Unikalna nazwa dla tego załącznika"
+
+#: models.py:44
+msgid "attachment"
+msgstr "załącznik"
+
+#: models.py:44
+msgid "attachments"
+msgstr "załączniki"
diff --git a/chunks/locale/ru/LC_MESSAGES/django.mo b/chunks/locale/ru/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..e1d650c
Binary files /dev/null and b/chunks/locale/ru/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/ru/LC_MESSAGES/django.po b/chunks/locale/ru/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..593521f
--- /dev/null
@@ -0,0 +1,53 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-03-04 22:10+0100\n"
+"Last-Translator: xxx <xxx>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "ключ"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "Уникальное имя для этого фрагмента содержания"
+
+#: models.py:12
+msgid "description"
+msgstr "описание"
+
+#: models.py:13
+msgid "content"
+msgstr "содержание"
+
+#: models.py:17
+msgid "chunk"
+msgstr "фрагмент"
+
+#: models.py:18
+msgid "chunks"
+msgstr "фрагменты"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Уникальное имя для этого приложения"
+
+#: models.py:38
+msgid "attachment"
+msgstr "приложение"
+
+#: models.py:38
+msgid "attachments"
+msgstr "приложения"
diff --git a/chunks/locale/uk/LC_MESSAGES/django.mo b/chunks/locale/uk/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..7c5388e
Binary files /dev/null and b/chunks/locale/uk/LC_MESSAGES/django.mo differ
diff --git a/chunks/locale/uk/LC_MESSAGES/django.po b/chunks/locale/uk/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..edb9b06
--- /dev/null
@@ -0,0 +1,53 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-19 11:39+0200\n"
+"PO-Revision-Date: 2012-03-04 17:29+0100\n"
+"Last-Translator: xxx <xxx>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:11 models.py:33
+msgid "key"
+msgstr "ключ"
+
+#: models.py:11
+msgid "A unique name for this chunk of content"
+msgstr "Унікальна назва для цієї частини змісту"
+
+#: models.py:12
+msgid "description"
+msgstr "опис"
+
+#: models.py:13
+msgid "content"
+msgstr "зміст"
+
+#: models.py:17
+msgid "chunk"
+msgstr "частина"
+
+#: models.py:18
+msgid "chunks"
+msgstr "частини"
+
+#: models.py:33
+msgid "A unique name for this attachment"
+msgstr "Унікальна назва для цього додатку"
+
+#: models.py:38
+msgid "attachment"
+msgstr "додаток"
+
+#: models.py:38
+msgid "attachments"
+msgstr "додатки"
diff --git a/chunks/migrations/0001_initial.py b/chunks/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..1fd5e1d
--- /dev/null
@@ -0,0 +1,59 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Chunk'
+        db.create_table('chunks_chunk', (
+            ('key', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
+            ('description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
+            ('content_pl', self.gf('markupfield.fields.MarkupField')(rendered_field=True, blank=True)),
+            ('content_en', self.gf('markupfield.fields.MarkupField')(rendered_field=True, blank=True)),
+            ('content_pl_markup_type', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, blank=True)),
+            ('content_en_markup_type', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, blank=True)),
+            ('_content_pl_rendered', self.gf('django.db.models.fields.TextField')()),
+            ('_content_en_rendered', self.gf('django.db.models.fields.TextField')()),
+        ))
+        db.send_create_signal('chunks', ['Chunk'])
+
+        # Adding model 'Attachment'
+        db.create_table('chunks_attachment', (
+            ('key', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
+            ('attachment', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
+        ))
+        db.send_create_signal('chunks', ['Attachment'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'Chunk'
+        db.delete_table('chunks_chunk')
+
+        # Deleting model 'Attachment'
+        db.delete_table('chunks_attachment')
+
+
+    models = {
+        'chunks.attachment': {
+            'Meta': {'ordering': "('key',)", 'object_name': 'Attachment'},
+            'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
+        },
+        'chunks.chunk': {
+            'Meta': {'ordering': "('key',)", 'object_name': 'Chunk'},
+            '_content_en_rendered': ('django.db.models.fields.TextField', [], {}),
+            '_content_pl_rendered': ('django.db.models.fields.TextField', [], {}),
+            'content_en': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
+            'content_en_markup_type': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'blank': 'True'}),
+            'content_pl': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
+            'content_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'blank': 'True'}),
+            'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
+        }
+    }
+
+    complete_apps = ['chunks']
\ No newline at end of file
diff --git a/chunks/migrations/__init__.py b/chunks/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/chunks/models.py b/chunks/models.py
new file mode 100644 (file)
index 0000000..f16af08
--- /dev/null
@@ -0,0 +1,47 @@
+from django.core.cache import cache
+from django.db import models
+from django.utils.translation import ugettext_lazy as _
+from markupfield.fields import MarkupField
+from fnpdjango.utils.models.translation import add_translatable
+
+
+class Chunk(models.Model):
+    """
+    A Chunk is a piece of content associated with a unique key that can be inserted into
+    any template with the use of a special template tag.
+    """
+    key = models.CharField(_('key'), help_text=_('A unique name for this chunk of content'), primary_key=True, max_length=255)
+    description = models.CharField(_('description'), blank=True, max_length=255)
+
+    class Meta:
+        ordering = ('key',)
+        verbose_name = _('chunk')
+        verbose_name_plural = _('chunks')
+
+    def __unicode__(self):
+        return self.key
+
+    def cache_key(self):
+        return 'chunk_' + self.key
+
+    def save(self, *args, **kwargs):
+        ret = super(Chunk, self).save(*args, **kwargs)
+        cache.delete(self.cache_key())
+        return ret
+
+add_translatable(Chunk, {
+    'content': MarkupField(_('content'), blank=True, markup_type='textile_pl',
+        help_text=_('Use <a href="http://txstyle.org/">Textile</a> syntax.')),
+})
+
+
+class Attachment(models.Model):
+    key = models.CharField(_('key'), help_text=_('A unique name for this attachment'), primary_key=True, max_length=255)
+    attachment = models.FileField(upload_to='chunks/attachment')
+
+    class Meta:
+        ordering = ('key',)
+        verbose_name, verbose_name_plural = _('attachment'), _('attachments')
+
+    def __unicode__(self):
+        return self.key
diff --git a/chunks/templatetags/__init__.py b/chunks/templatetags/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/chunks/templatetags/chunks.py b/chunks/templatetags/chunks.py
new file mode 100644 (file)
index 0000000..6231e4f
--- /dev/null
@@ -0,0 +1,38 @@
+from django import template
+from django.db import models
+from django.core.cache import cache
+from ..models import Chunk, Attachment
+
+
+register = template.Library()
+
+
+@register.simple_tag
+def chunk(key, cache_time=0, raw=False):
+    try:
+        cache_key = 'chunk_' + key
+        c = cache.get(cache_key)
+        if c is None:
+            c = Chunk.objects.get(key=key)
+            cache.set(cache_key, c, int(cache_time))
+        content = c.content
+    except Chunk.DoesNotExist:
+        n = Chunk(key=key)
+        n.save()
+        return ''
+    return content.raw if raw else content
+
+
+@register.simple_tag
+def attachment(key, cache_time=0):
+    try:
+        cache_key = 'attachment_' + key
+        c = cache.get(cache_key)
+        if c is None:
+            c = Attachment.objects.get(key=key)
+            cache.set(cache_key, c, int(cache_time))
+        return c.attachment.url
+    except Attachment.DoesNotExist:
+        return ''
+
+
index 1e87f11..2acaaf9 100644 (file)
@@ -6,6 +6,7 @@ INSTALLED_APPS = (
     'migdal',
     'questions',
     'shop',
     'migdal',
     'questions',
     'shop',
+    'chunks',
 
     'gravatar',
     'south',
 
     'gravatar',
     'south',
index 8260886..906871b 100755 (executable)
@@ -4,6 +4,7 @@
 {% load static from staticfiles %}
 {% load fnp_common menu_tags migdal_tags events_tags fnp_share fnp_lang %}
 {% load compressed %}
 {% load static from staticfiles %}
 {% load fnp_common menu_tags migdal_tags events_tags fnp_share fnp_lang %}
 {% load compressed %}
+{% load chunks %}
 <html prefix="og: http://ogp.me/ns#">
     <head>
        <title>{% block "titleextra" %}{% endblock %}{% trans "Right to Culture" %}</title>
 <html prefix="og: http://ogp.me/ns#">
     <head>
        <title>{% block "titleextra" %}{% endblock %}{% trans "Right to Culture" %}</title>
@@ -67,7 +68,7 @@
                     {% events_box %}
                 </div>
                 <div class="sidebar-box" style="text-align: center">
                     {% events_box %}
                 </div>
                 <div class="sidebar-box" style="text-align: center">
-                   <a href="/pierwsza-pomoc"><img src="{% static 'img/ask-a-lawyer.png' %}" alt="{% trans "Ask a lawyer" %}" /></a>
+                    {% chunk 'side_promo' %}
                 </div>
                 <div id="sidebar-box-categories" class="sidebar-box">
                     {% categories 'topics' %}
                 </div>
                 <div id="sidebar-box-categories" class="sidebar-box">
                     {% categories 'topics' %}
index 6427bbc..0f1c343 100755 (executable)
@@ -13,6 +13,7 @@ class QuestionAdmin(admin.ModelAdmin):
         'approved',
         'edited_question',
         'answer',
         'approved',
         'edited_question',
         'answer',
+        'answered_by',
         'tags',
         ('answered', 'answered_at'),
         ('published', 'published_at'),
         'tags',
         ('answered', 'answered_at'),
         ('published', 'published_at'),
index 43ab53d..ae2bfea 100644 (file)
Binary files a/questions/locale/pl/LC_MESSAGES/django.mo and b/questions/locale/pl/LC_MESSAGES/django.mo differ
index ff4c09c..190749c 100644 (file)
@@ -7,78 +7,105 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-01-14 15:57+0100\n"
-"PO-Revision-Date: 2013-01-14 15:59+0100\n"
+"POT-Creation-Date: 2013-11-26 13:59+0100\n"
+"PO-Revision-Date: 2013-11-26 14:00+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
-"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+"X-Generator: Poedit 1.5.4\n"
 
 
-#: models.py:11
+#: models.py:16
+msgid "Name"
+msgstr "Nazwa"
+
+#: models.py:17
+msgid "Slug"
+msgstr "Slug"
+
+#: models.py:20
+msgid "Tag Category"
+msgstr "Kategoria tagów"
+
+#: models.py:21
+msgid "Tag Categories"
+msgstr "Kategorie tagów"
+
+#: models.py:38
+msgid "Tag"
+msgstr "Tag"
+
+#: models.py:39
+msgid "Tags"
+msgstr "Tagi"
+
+#: models.py:47
 msgid "contact e-mail"
 msgstr "e-mail kontaktowy"
 
 msgid "contact e-mail"
 msgstr "e-mail kontaktowy"
 
-#: models.py:12
-#: models.py:29
+#: models.py:48 models.py:68
 msgid "question"
 msgstr "pytanie"
 
 msgid "question"
 msgstr "pytanie"
 
-#: models.py:13
+#: models.py:49
 msgid "created at"
 msgstr "utworzone"
 
 msgid "created at"
 msgstr "utworzone"
 
-#: models.py:14
+#: models.py:50
 msgid "changed at"
 msgstr "zmienione"
 
 msgid "changed at"
 msgstr "zmienione"
 
-#: models.py:15
+#: models.py:51
 msgid "approved"
 msgstr "potwierdzone"
 
 msgid "approved"
 msgstr "potwierdzone"
 
-#: models.py:16
+#: models.py:52
 msgid "edited question"
 msgstr "zmienione pytanie"
 
 msgid "edited question"
 msgstr "zmienione pytanie"
 
-#: models.py:17
+#: models.py:53
 msgid "Leave empty if question doesn't need editing."
 msgstr "Zostaw puste, jeśli pytanie nie wymaga zmian."
 
 msgid "Leave empty if question doesn't need editing."
 msgstr "Zostaw puste, jeśli pytanie nie wymaga zmian."
 
-#: models.py:18
+#: models.py:54
 msgid "answer"
 msgstr "odpowiedź"
 
 msgid "answer"
 msgstr "odpowiedź"
 
-#: models.py:19
-msgid "Use <a href=\"http://textile.thresholdstate.com/\">Textile</a> syntax."
-msgstr ""
+#: models.py:55
+msgid "Use <a href=\"http://txstyle.org/\">Textile</a> syntax."
+msgstr "Użyj składni <a href=\"http://txstyle.org/\">Textile</a>."
 
 
-#: models.py:20
+#: models.py:56
+msgid "answered by"
+msgstr "odpowiedzi udzielił/a"
+
+#: models.py:57
 msgid "answered"
 msgstr "udzielono odpowiedzi"
 
 msgid "answered"
 msgstr "udzielono odpowiedzi"
 
-#: models.py:21
+#: models.py:58
 msgid "Check to send the answer to user."
 msgstr "Zaznacz, by wysłać odpowiedź użytkownikowi."
 
 msgid "Check to send the answer to user."
 msgstr "Zaznacz, by wysłać odpowiedź użytkownikowi."
 
-#: models.py:22
+#: models.py:59
 msgid "answered at"
 msgstr "udzielono odpowiedzi"
 
 msgid "answered at"
 msgstr "udzielono odpowiedzi"
 
-#: models.py:23
+#: models.py:60
 msgid "published"
 msgstr "opublikowane"
 
 msgid "published"
 msgstr "opublikowane"
 
-#: models.py:24
+#: models.py:61
 msgid "Check to display answered question on site."
 msgstr "Zaznaczy, by odpowiedź ukazała się na stronie."
 
 msgid "Check to display answered question on site."
 msgstr "Zaznaczy, by odpowiedź ukazała się na stronie."
 
-#: models.py:25
+#: models.py:62
 msgid "published at"
 msgstr "opublikowane"
 
 msgid "published at"
 msgstr "opublikowane"
 
-#: models.py:30
+#: models.py:69
 msgid "questions"
 msgstr "pytania"
 msgid "questions"
 msgstr "pytania"
-
diff --git a/questions/migrations/0006_auto__del_unique_tag_name__add_field_question_answered_by.py b/questions/migrations/0006_auto__del_unique_tag_name__add_field_question_answered_by.py
new file mode 100644 (file)
index 0000000..7f3a452
--- /dev/null
@@ -0,0 +1,80 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Removing unique constraint on 'Tag', fields ['name']
+        db.delete_unique('questions_tag', ['name'])
+
+        # Adding field 'Question.answered_by'
+        db.add_column('questions_question', 'answered_by',
+                      self.gf('django.db.models.fields.CharField')(max_length=127, null=True, blank=True),
+                      keep_default=False)
+
+        if not db.dry_run:
+            orm.Question.objects.filter(answered=True).update(answered_by=u"dr Krzysztof Siewicz")
+
+
+    def backwards(self, orm):
+        # Adding unique constraint on 'Tag', fields ['name']
+        db.create_unique('questions_tag', ['name'])
+
+        # Deleting field 'Question.answered_by'
+        db.delete_column('questions_question', 'answered_by')
+
+
+    models = {
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'questions.question': {
+            'Meta': {'ordering': "['-created_at']", 'object_name': 'Question'},
+            '_answer_rendered': ('django.db.models.fields.TextField', [], {}),
+            'answer': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
+            'answer_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
+            'answered': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
+            'answered_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'answered_by': ('django.db.models.fields.CharField', [], {'max_length': '127', 'null': 'True', 'blank': 'True'}),
+            'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'edited_question': ('django.db.models.fields.TextField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'published': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
+            'published_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'question': ('django.db.models.fields.TextField', [], {'db_index': 'True'})
+        },
+        'questions.tag': {
+            'Meta': {'object_name': 'Tag'},
+            'category': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'tags'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['questions.TagCategory']"}),
+            'click_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
+        },
+        'questions.tagcategory': {
+            'Meta': {'object_name': 'TagCategory'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
+        },
+        'questions.tagitem': {
+            'Meta': {'object_name': 'TagItem'},
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_tagitem_tagged_items'", 'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['questions.Tag']"})
+        }
+    }
+
+    complete_apps = ['questions']
index 746ad84..f00afc1 100644 (file)
@@ -52,7 +52,8 @@ class Question(models.Model):
     edited_question = models.TextField(_('edited question'), db_index=True, null=True, blank=True,
             help_text=_("Leave empty if question doesn't need editing."))
     answer = MarkupField(_('answer'), markup_type='textile_pl', blank=True,
     edited_question = models.TextField(_('edited question'), db_index=True, null=True, blank=True,
             help_text=_("Leave empty if question doesn't need editing."))
     answer = MarkupField(_('answer'), markup_type='textile_pl', blank=True,
-            help_text=_('Use <a href="http://textile.thresholdstate.com/">Textile</a> syntax.'))
+            help_text=_('Use <a href="http://txstyle.org/">Textile</a> syntax.'))
+    answered_by = models.CharField(_('answered by'), max_length=127, null=True, blank=True)
     answered = models.BooleanField(_('answered'), db_index=True, default=False,
             help_text=_('Check to send the answer to user.'))
     answered_at = models.DateTimeField(_('answered at'), null=True, blank=True, db_index=True)
     answered = models.BooleanField(_('answered'), db_index=True, default=False,
             help_text=_('Check to send the answer to user.'))
     answered_at = models.DateTimeField(_('answered at'), null=True, blank=True, db_index=True)
index 23eae4f..632c86b 100755 (executable)
@@ -1,12 +1,9 @@
-{% load i18n %}{% language 'pl' %}
+{% load i18n chunks %}{% language 'pl' %}
 <p>{{ question.created_at }} zarejestrowaliśmy w serwisie PrawoKultury.pl Twoje pytanie:</p>
 
 <blockquote>{{ question.question|linebreaks }}</blockquote>
 
 <p>{{ question.created_at }} zarejestrowaliśmy w serwisie PrawoKultury.pl Twoje pytanie:</p>
 
 <blockquote>{{ question.question|linebreaks }}</blockquote>
 
-<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>
+{% chunk 'questions_ack_mail_html' %}
 
 <p>Dziękujemy za skontaktowanie się z nami!</p>
 
 
 <p>Dziękujemy za skontaktowanie się z nami!</p>
 
index 6b0a771..e281d5c 100755 (executable)
@@ -1,12 +1,9 @@
-{% load i18n %}{% language 'pl' %}{{ question.created_at }} zarejestrowaliśmy w serwisie PrawoKultury.pl Twoje pytanie:
+{% load i18n chunks %}{% language 'pl' %}{{ question.created_at }} zarejestrowaliśmy w serwisie PrawoKultury.pl Twoje pytanie:
 
 {{ question.question|safe }}
 
 
 
 {{ question.question|safe }}
 
 
-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
+{% chunk 'questions_ack_mail_txt' raw=1 %}
 
 Dziękujemy za skontaktowanie się z nami!
 
 
 Dziękujemy za skontaktowanie się z nami!
 
index b3426e7..b263830 100755 (executable)
@@ -16,7 +16,7 @@
 
 {{ question.answer }}
 
 
 {{ question.answer }}
 
-<p>dr Krzysztof Siewicz</p>
+<p>{{ question.answered_by }}</p>
 
 <p><a href="{% url 'questions' %}">Wróć do listy pytań.</a></p>
 
 
 <p><a href="{% url 'questions' %}">Wróć do listy pytań.</a></p>
 
index 1a413d0..8f74192 100755 (executable)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% load url from future %}
 {% extends "base.html" %}
 {% load url from future %}
+{% load chunks %}
 
 {% block "titleextra" %}Pierwsza pomoc w prawie autorskim: pytanie do prawnika :: {% endblock %}
 {% block "body" %}
 
 {% block "titleextra" %}Pierwsza pomoc w prawie autorskim: pytanie do prawnika :: {% endblock %}
 {% block "body" %}
@@ -7,23 +8,7 @@
 
 
 <div class="normal">
 
 
 <div class="normal">
-<p>Poniżej znajduje się formularz, za pomocą którego możesz zadać pytanie prawnikowi. Wybrane
-pytania (w razie potrzeby odpowiednio przeformułowane) oraz odpowiedzi na te pytania będą
-publikowane na stronie <a href="{% url 'questions' %}">prawokultury.pl</a>. Możesz zostawić swoje 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.
-</p>
-
-<p>Możemy nie być w stanie odpowiedzieć na wszystkie pytania,
-a w przypadku podobnych pytań możemy odsyłać do <a href="{% url 'questions' %}">wcześniejszych odpowiedzi</a>.
-Odpowiedzi na pytania nie należy traktować jak porad prawnych. Nie prowadzimy indywidualnych konsultacji prawnych.</p>
-
-<p>Administratorem danych osobowych przetwarzanych w związku z funkcjonowaniem
-tego serwisu jest Fundacja Nowoczesna Polska [ul. Marszałkowska 84/92 lok. 125,
-00-514 Warszawa]. Podanie danych osobowych jest dobrowolne. Dane są przetwarzane
-w zakresie niezbędnym do prowadzenia serwisu. Osobom, których dane są zbierane,
-przysługuje prawo dostępu do treści swoich danych oraz ich poprawiania.</p>
-
+{% chunk 'questions_form_info' %}
 </div>
 
 <form class="submit-form" method="post" action="">
 </div>
 
 <form class="submit-form" method="post" action="">
index 3236309..88bd7c2 100755 (executable)
@@ -2,31 +2,14 @@
 {% load url from future %}
 {% load pagination_tags fnp_prevnext %}
 {% load compressed %}
 {% load url from future %}
 {% load pagination_tags fnp_prevnext %}
 {% load compressed %}
+{% load chunks %}
 
 {% block "titleextra" %}Pierwsza pomoc w prawie autorskim :: {% endblock %}
 {% block "body" %}
 <h1>Pierwsza pomoc w prawie autorskim: zapytaj prawnika</h1>
 
 <div class="normal">
 
 {% block "titleextra" %}Pierwsza pomoc w prawie autorskim :: {% endblock %}
 {% block "body" %}
 <h1>Pierwsza pomoc w prawie autorskim: zapytaj prawnika</h1>
 
 <div class="normal">
-<h2>Zadaj nam pytanie!</h2>
-<p>Jeżeli masz pytanie dotyczące prawa autorskiego, którego nie ma na poniższej liście, i na które nie znalazłeś/znalazłaś
-odpowiedzi w <strong><a href="{% url 'migdal_entry_publications' 'pierwsza-pomoc' %}">przewodniku
-po prawie autorskim</a></strong>, możesz je nam zadać dzwoniąc w każdą środę w godz. 15-17 pod numer +48 516 519 697 lub
-<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>
+{% chunk 'questions_list_info' %}
 
 <div id="questions-filter">
     <h2>Filtruj pytania</h2>
 
 <div id="questions-filter">
     <h2>Filtruj pytania</h2>