From 5120532d42f2130dd250ec7089d28d9d0fa2b09c Mon Sep 17 00:00:00 2001
From: Radek Czajka
Date: Tue, 28 Aug 2012 15:17:48 +0200
Subject: [PATCH 1/1] comment form
---
events/locale/pl/LC_MESSAGES/django.po | 6 +-
migdal/locale/pl/LC_MESSAGES/django.mo | Bin 4208 -> 4012 bytes
migdal/locale/pl/LC_MESSAGES/django.po | 73 +++++++++--------
migdal/templates/comments/form.html | 29 +++++++
.../templates/comments/migdal/entry/list.html | 31 +++++---
.../comments/migdal/entry/preview.html | 74 ++++++++----------
.../email_followup_comment.html | 9 +--
.../email_followup_comment.txt | 7 +-
.../templates/migdal/entry/entry_begin.html | 2 +-
.../templates/migdal/entry/entry_detail.html | 5 +-
migdal/templates/migdal/entry/submit.html | 4 +-
prawokultury/locale/pl/LC_MESSAGES/django.po | 20 +++--
prawokultury/static/css/entry.css | 17 ++++
prawokultury/static/css/entry.scss | 31 +++++++-
prawokultury/static/css/forms.css | 18 +++--
prawokultury/static/css/forms.scss | 18 ++++-
prawokultury/static/css/sidebar.css | 2 +
prawokultury/static/css/sidebar.scss | 4 +
prawokultury/templates/base.html | 2 +-
19 files changed, 234 insertions(+), 118 deletions(-)
create mode 100755 migdal/templates/comments/form.html
diff --git a/events/locale/pl/LC_MESSAGES/django.po b/events/locale/pl/LC_MESSAGES/django.po
index e758503..c5bf9ce 100644
--- a/events/locale/pl/LC_MESSAGES/django.po
+++ b/events/locale/pl/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: prawokultury-events\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-08-28 11:24+0200\n"
+"POT-Creation-Date: 2012-08-28 15:15+0200\n"
"PO-Revision-Date: 2012-08-28 11:28+0100\n"
"Last-Translator: Radek Czajka \n"
"Language-Team: FNP \n"
@@ -15,7 +15,8 @@ msgstr ""
"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"
#: models.py:11
msgid "date"
@@ -68,4 +69,3 @@ msgstr "Organizator"
#: templates/events/snippets/events_box.html:21
msgid "more events"
msgstr "wiÄcej wydarzeÅ"
-
diff --git a/migdal/locale/pl/LC_MESSAGES/django.mo b/migdal/locale/pl/LC_MESSAGES/django.mo
index 83ff231d4a3281c27bfaeaa1f13ab858c8dc549c..70fc97dc11177961042897bad9b1decaa7895ce8 100644
GIT binary patch
delta 1539
zcmYk6O=whC6vyv0V?HLCNt5^;#aB#3BbtetCIns7XtQXlVgo@}J~Bg`jLwVmMni-U
zlxE|m=%vA;*@z$pp~ZC3K*1JL7X?8@MMV^8wRM$NwA4kVzklWiJ-qXN_uPBlx#ylU
zcmDFOtQvh>8~xfK?dS^hQN)V$YcI=_TNy6{p;+v
z&R#%}*R-<|-ex^QmgnFd*a8RHY_yue1qRyis^gDP6}S#{@>|Y+;P^X~|14BX-njYl
zc+tNOl7p#-b+7>{Uc0k9;a=?CIQ7>ClT4_GSD_Mm4wu7!piW-HF6?2J!d-Yr9?*&xrW*uK8sJ}jV!-RSmVRt#ip-xci?0Tqx9#o(vXD6Xf
z*5T}(&fX1`@P0^W(+_o!V~!(G-+ih2YvC)$amNX$#4bWwXjY>7)i$798?zCuMc1Kg
z(Iw~_RELo02Iw}lp}NVs+7eauebJ%jO1{|EMC(4EGu^r_pXbI(MY0raLiKMUQLWTr
ziH@-zU4?#(#_f@4oxh2ZL_fGjbc+l`)twhrNbQ#-QB`h(45YaT^8r-FB+F2B;Ulzu
z>REI&vi6fy%IgabA5P~ArqeH^`-6NY9nKGjO=oc}v_qxMRY903WP)61_5`6VDI2$E
z%Koq;<>8r%pQ5cDEv8#gz+#ksL
z-qyUI3RoH1*ry4*J+^wPIkqek-w~wzftj&BZ)h+R+I^LG7p9oWWzt?Q7$U*B`J?vJ
zs>$j(S1%hVeLsKP&Q>joeKv2UZArYn_KSkgXPGeTo8IAH&K=4O*k9w@N_qz~HkR14
f#LbyvBs_jE=?m^chN<9aUE#!vXh${6tya^A%ql@O_cE^-zz|X*X
z=)*cV2?3ND9NAUUdAP!jtMJ_-MVkHB3_N^O%c#{1PP4CDo`K}qCoD3#4XF7-Y)o>fPo
zYWxr_?^ao8cKrC8^7Q9FTtNU)(rfX_1$Fq9$dpq%3BzG#(*_7YxpOWild47PBa;|
zL5W)n7s}9!2Yrw0bjYMjMb=D|!G)vSQLr9#vbBeEqA@CbV)Tw>wQTT&^S0
zmOb*y+a^Co%Q%v|m>kwaNd7&E
zoFMQ6YtYI11(m+ba(H{)58b@$d!b7EVZL^=ivC2vhPj;M>C>@ybYI<%3%rc(uAfM<
zZ_Xa$btASn?1cJA{n==Ds;5_v#n)|Tu(hLWOIKIJvv!!@)EC%Zn6>kMkh1pJ!I0}&
z&-f+R8MPkI)!ZktJ}G*x-RTFzr>@2Ck1XvkhQ;cXJzAL_vOK2{+B(^IdBu28DuzsZ
zu48$A!5Q|=;vbD4>61;%^o6G0ayszCQssa(?vDp{!L7W($aAY_!cx&1tWH&?GwSXk
zPA%j>rue^N_T_ETaKkZM^%tuLv+k(sUot
l&i`y;ecOL8b?V;}m58f9UOd&1ofx!AIoGMauD2z_e*lR2CddE)
diff --git a/migdal/locale/pl/LC_MESSAGES/django.po b/migdal/locale/pl/LC_MESSAGES/django.po
index 4588ee9..617d631 100644
--- a/migdal/locale/pl/LC_MESSAGES/django.po
+++ b/migdal/locale/pl/LC_MESSAGES/django.po
@@ -7,9 +7,9 @@ msgid ""
msgstr ""
"Project-Id-Version: django-migdal 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-08-28 12:37+0200\n"
-"PO-Revision-Date: 2012-08-28 12:38+0100\n"
-"Last-Translator: Marcin Koziej \n"
+"POT-Creation-Date: 2012-08-28 15:15+0200\n"
+"PO-Revision-Date: 2012-08-28 15:17+0100\n"
+"Last-Translator: Radek Czajka \n"
"Language-Team: FNP \n"
"Language: Polish\n"
"MIME-Version: 1.0\n"
@@ -155,44 +155,33 @@ msgstr "dzieki"
msgid "search"
msgstr "szukaj"
-#: templates/comments/migdal/entry/preview.html:19
-msgid "Please correct the error below"
-msgid_plural "Please correct the errors below"
-msgstr[0] "ProszÄ poprawiÄ poniższy bÅÄ
d"
-msgstr[1] "ProszÄ poprawiÄ poniższe bÅÄdy"
-msgstr[2] "ProszÄ poprawiÄ poniższe bÅÄdy"
+#: templates/comments/form.html:3
+msgid "Add comment"
+msgstr "Dodaj komentarz"
-#: templates/comments/migdal/entry/preview.html:21
-msgid "Preview your comment"
-msgstr "PodglÄ
d komentarza"
-
-#: templates/comments/migdal/entry/preview.html:29
-msgid "and"
-msgstr "i"
-
-#: templates/comments/migdal/entry/preview.html:29
-msgid "Post your comment"
-msgstr "WyÅlij komentarz"
-
-#: templates/comments/migdal/entry/preview.html:29
-msgid "or make changes"
-msgstr "lub zmieÅ"
-
-#: templates/comments/migdal/entry/preview.html:45
+#: templates/comments/form.html:24
msgid "Post"
msgstr "WyÅlij"
-#: templates/comments/migdal/entry/preview.html:46
+#: templates/comments/form.html:25
msgid "Preview"
msgstr "PodglÄ
d"
+#: templates/comments/migdal/entry/list.html:5
+msgid "Comments"
+msgstr "Komentarze"
+
+#: templates/comments/migdal/entry/preview.html:26
+msgid "Preview your comment"
+msgstr "PodglÄ
d komentarza"
+
#: templates/migdal/entry/entry_list.html:22
msgid "Category"
msgstr "Kategoria"
#: templates/migdal/entry/entry_list.html:55
msgid "Submit a new story, create Culture's Right with us!"
-msgstr "PrzyÅlij nowego newsa, twórz Prawo Kultury razem z nami!"
+msgstr "Dodaj nowy wpis, twórz Prawo Kultury razem z nami!"
#: templates/migdal/entry/entry_short.html:16
#, python-format
@@ -208,7 +197,7 @@ msgstr "czytaj wiÄcej"
#: templates/migdal/entry/submit.html:7
msgid "Submit new story"
-msgstr "PrzyÅlij nowego newsa."
+msgstr "Dodaj nowy wpis"
#: templates/migdal/entry/submit.html:9
msgid ""
@@ -218,14 +207,18 @@ msgid ""
"free license."
msgstr ""
"\n"
-"WysyÅajÄ
c newsa, zgadzasz siÄ najego publikacjÄ na warunkach wolnej licencji\n"
+"DodajÄ
c wpis, zgadzasz siÄ najego publikacjÄ na warunkach wolnej licencji\n"
"Creative Commons Uznanie autorstwa â Na tych samych warunkach."
#: templates/migdal/entry/submit.html:14
msgid ""
"Stories are moderated, so please be\n"
"patient, you'll be notified when it's published."
-msgstr "Newsy sÄ
moderowane. BÄ
dź cierpliwy, otrzymasz powiadomienie o jego publikacji."
+msgstr "Wpisy sÄ
moderowane. BÄ
dź cierpliwy, otrzymasz powiadomienie o jego publikacji."
+
+#: templates/migdal/entry/submit.html:21
+msgid "Submit"
+msgstr "WyÅlij"
#: templates/migdal/entry/submit_thanks.html:7
msgid "Thanks for submitting"
@@ -239,7 +232,7 @@ msgid ""
"and comments.\n"
msgstr ""
"\n"
-"DziÄkujemy za przysÅanie nowego newsa, teraz czeka on na moderacjÄ.JeÅli podano adres e-mail, bÄdziemy CiÄ informowali o zmianach statusui komentarzach\n"
+"DziÄkujemy za dodanie nowego wpisu, teraz czeka on na moderacjÄ.JeÅli podano adres e-mail, bÄdziemy CiÄ informowali o zmianach statusui komentarzach\n"
#: templates/search/search.html:9
msgid "Search results"
@@ -269,6 +262,22 @@ msgstr "Wydarzenia"
msgid "Positions"
msgstr "Stanowiska"
+#~ msgid "Please correct the error below"
+
+#~ msgid_plural "Please correct the errors below"
+#~ msgstr[0] "ProszÄ poprawiÄ poniższy bÅÄ
d"
+#~ msgstr[1] "ProszÄ poprawiÄ poniższe bÅÄdy"
+#~ msgstr[2] "ProszÄ poprawiÄ poniższe bÅÄdy"
+
+#~ msgid "and"
+#~ msgstr "i"
+
+#~ msgid "Post your comment"
+#~ msgstr "WyÅlij komentarz"
+
+#~ msgid "or make changes"
+#~ msgstr "lub zmieÅ"
+
#~ msgid "Latest news"
#~ msgstr "Ostatnie newsy"
diff --git a/migdal/templates/comments/form.html b/migdal/templates/comments/form.html
new file mode 100755
index 0000000..341750f
--- /dev/null
+++ b/migdal/templates/comments/form.html
@@ -0,0 +1,29 @@
+{% load comments i18n %}
+
diff --git a/migdal/templates/comments/migdal/entry/list.html b/migdal/templates/comments/migdal/entry/list.html
index c01f256..9f7241b 100755
--- a/migdal/templates/comments/migdal/entry/list.html
+++ b/migdal/templates/comments/migdal/entry/list.html
@@ -1,13 +1,26 @@
+{% load i18n %}
{% load gravatar %}
{% load markup_tags %}
-
{{ comment.name }}, {{ comment.submit_date|date:"SHORT_DATE_FORMAT" }}:
diff --git a/migdal/templates/django_comments_xtd/email_followup_comment.txt b/migdal/templates/django_comments_xtd/email_followup_comment.txt
index a1ca8f1..834c60e 100755
--- a/migdal/templates/django_comments_xtd/email_followup_comment.txt
+++ b/migdal/templates/django_comments_xtd/email_followup_comment.txt
@@ -1,12 +1,9 @@
{% load i18n %}{{ user_name }},
PojawiÅ siÄ nowy komentarz w wÄ
tku z Twoim udziaÅem.
-(There is a new comment following up yours.)
-{% if content_object.published_pl %}{% language 'pl' %}Polska wersja: â{{ content_object.title }}â
- http://{{ site.domain }}{{ content_object.get_absolute_url }}{% endlanguage %}{% endif %}
-{% if content_object.published_en %}{% language 'en' %}English version: â{{ content_object.title }}â
- http://{{ site.domain }}{{ content_object.get_absolute_url }}{% endlanguage %}{% endif %}
+{% language 'pl' %}â{{ content_object.title }}â
+http://{{ site.domain }}{{ content_object.get_absolute_url }}{% endlanguage %}
{{ comment.name }}, {{ comment.submit_date|date:"SHORT_DATE_FORMAT" }}:
diff --git a/migdal/templates/migdal/entry/entry_begin.html b/migdal/templates/migdal/entry/entry_begin.html
index 097d29c..9f07e0d 100755
--- a/migdal/templates/migdal/entry/entry_begin.html
+++ b/migdal/templates/migdal/entry/entry_begin.html
@@ -36,7 +36,7 @@
{% if object.image %}
-
{{ entry.body }}
+
{% if entry.get_type.commentable %}
{% render_comment_list for entry %}
+
{% endif %}
diff --git a/migdal/templates/migdal/entry/submit.html b/migdal/templates/migdal/entry/submit.html
index ad3d6f2..cc376d7 100755
--- a/migdal/templates/migdal/entry/submit.html
+++ b/migdal/templates/migdal/entry/submit.html
@@ -11,14 +11,14 @@ By submitting a story here, you agree to publish it under the terms of the
Creative Commons Attribution-Share Alike
free license.{% endblocktrans %}
-{% blocktrans %}Stories are moderated, so please be
+
{% blocktrans %}Stories are moderated, so please be
patient, you'll be notified when it's published.{% endblocktrans %}
diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.po b/prawokultury/locale/pl/LC_MESSAGES/django.po
index 02a7abd..88bb799 100644
--- a/prawokultury/locale/pl/LC_MESSAGES/django.po
+++ b/prawokultury/locale/pl/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: prawokultury\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-08-28 12:13+0200\n"
+"POT-Creation-Date: 2012-08-28 15:15+0200\n"
"PO-Revision-Date: 2012-08-28 12:13+0100\n"
"Last-Translator: Radek Czajka \n"
"Language-Team: FNP \n"
@@ -15,14 +15,14 @@ msgstr ""
"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"
-#: urls.py:24
+#: urls.py:23
msgid "events"
msgstr "wydarzenia"
-#: templates/base.html:8
-#: templates/base.html.py:18
+#: templates/base.html:8 templates/base.html.py:18
msgid "Culture's right"
msgstr "Prawo kultury"
@@ -55,8 +55,14 @@ msgid "Latest comments"
msgstr "Ostatnie komentarze"
#: templates/base.html:86
-msgid "If not explicitly stated otherwise, all texts are licensed under the Creative Commons Attribution-Share Alike free license."
-msgstr "JeÅli nie oznaczono inaczej, wszystkie teksty sÄ
objÄte wolnÄ
licencjÄ
Creative Commons Uznanie autorstwa â Na tych samych warunkach."
+msgid ""
+"If not explicitly stated otherwise, all texts are licensed under the Creative Commons "
+"Attribution-Share Alike free license."
+msgstr ""
+"JeÅli nie oznaczono inaczej, wszystkie teksty sÄ
objÄte wolnÄ
licencjÄ
Creative "
+"Commons Uznanie autorstwa â Na tych samych warunkach."
#: templates/prevnext/next.html:13
msgid "next"
diff --git a/prawokultury/static/css/entry.css b/prawokultury/static/css/entry.css
index d8b835a..6c19bf1 100644
--- a/prawokultury/static/css/entry.css
+++ b/prawokultury/static/css/entry.css
@@ -16,6 +16,8 @@
font-size: 1.2em; }
.entry-wrapped h1 a, .entry-wrapped h2 a {
color: #01519a; }
+ .entry-wrapped h2.section {
+ margin: 2em 0; }
.entry-wrapped .entry-data {
font-size: 1.2em;
margin-top: 1.4em;
@@ -73,3 +75,18 @@
content: url("/static/img/plus.png");
vertical-align: top;
margin-right: 1em; }
+
+.comments {
+ margin-left: 8em; }
+ .comments .comment-form {
+ border-top: 1px solid #494948; }
+ .comments .comment-data {
+ font-size: 1.2em;
+ margin-top: 1.4em;
+ margin-bottom: 1.4em; }
+ .comments .comment-data .comment-date {
+ color: #acacac; }
+ .comments .comment-data .comment-author {
+ font-weight: bold; }
+ .comments .body {
+ font-size: 1.2em; }
diff --git a/prawokultury/static/css/entry.scss b/prawokultury/static/css/entry.scss
index 77c2935..e6b5056 100755
--- a/prawokultury/static/css/entry.scss
+++ b/prawokultury/static/css/entry.scss
@@ -25,6 +25,10 @@
}
}
+ h2.section {
+ margin: 2em 0;
+ }
+
.entry-data {
font-size: 1.2em;
margin-top: 1.4em;
@@ -104,4 +108,29 @@
vertical-align: top;
margin-right: 1em;
}
-}
\ No newline at end of file
+}
+
+
+.comments {
+ margin-left: 8em;
+
+ .comment-form {
+ border-top: 1px solid #494948;
+ }
+
+ .comment-data {
+ font-size: 1.2em;
+ margin-top: 1.4em;
+ margin-bottom: 1.4em;
+ .comment-date {
+ color: #acacac;
+ }
+ .comment-author {
+ font-weight: bold;
+ }
+ }
+
+ .body {
+ font-size: 1.2em;
+ }
+}
diff --git a/prawokultury/static/css/forms.css b/prawokultury/static/css/forms.css
index 0898882..9b3957d 100644
--- a/prawokultury/static/css/forms.css
+++ b/prawokultury/static/css/forms.css
@@ -2,7 +2,7 @@
font-size: 1.2em; }
.submit-form {
- margin-top: 1.3em; }
+ margin-top: 3em; }
.submit-form table {
border-spacing: 0 .5em; }
.submit-form tr {
@@ -10,19 +10,27 @@
.submit-form label {
font-size: 1.2em;
font-weight: normal; }
+ .submit-form .errorlist {
+ color: #e41b13;
+ font-size: 1.2em;
+ padding: 0 0 0 1.3em;
+ margin: 0 0 .5em 0;
+ list-style: url("/static/img/read-more.png"); }
.submit-form input, .submit-form textarea, .submit-form select {
font-size: 1.2em;
border: 0;
- background-color: #fdfdfd;
+ background-color: white;
+ color: #363A3B;
width: 100%;
- margin-bottom: .5em; }
+ margin-bottom: .5em;
+ border: 1px solid #EDECE7; }
.submit-form th, .submit-form td {
text-align: left;
font-weight: normal;
vertical-align: top;
- padding: .5em 0; }
+ padding: .5em; }
.submit-form .helptext {
color: #acacac;
font-size: 1.1em; }
.submit-form .helptext a {
- color: black; }
+ color: #363A3B; }
diff --git a/prawokultury/static/css/forms.scss b/prawokultury/static/css/forms.scss
index ce7625a..626702e 100755
--- a/prawokultury/static/css/forms.scss
+++ b/prawokultury/static/css/forms.scss
@@ -3,7 +3,7 @@
}
.submit-form {
- margin-top: 1.3em;
+ margin-top: 3em;
table {
border-spacing: 0 .5em;
@@ -18,12 +18,22 @@
font-weight: normal;
}
+ .errorlist {
+ color: #e41b13;
+ font-size: 1.2em;
+ padding: 0 0 0 1.3em;
+ margin: 0 0 .5em 0;
+ list-style: url("/static/img/read-more.png");
+ }
+
input, textarea, select {
font-size: 1.2em;
border: 0;
- background-color: #fdfdfd;
+ background-color: white;
+ color: #363A3B;
width: 100%;
margin-bottom: .5em;
+ border: 1px solid #EDECE7;
}
@@ -31,14 +41,14 @@
text-align: left;
font-weight: normal;
vertical-align: top;
- padding: .5em 0;
+ padding: .5em;
}
.helptext {
color: #acacac;
font-size: 1.1em;
a {
- color: black;
+ color: #363A3B;
}
}
}
diff --git a/prawokultury/static/css/sidebar.css b/prawokultury/static/css/sidebar.css
index f5baa3d..0bc8a60 100644
--- a/prawokultury/static/css/sidebar.css
+++ b/prawokultury/static/css/sidebar.css
@@ -8,6 +8,8 @@
font-weight: normal;
margin-top: 0;
margin-bottom: 1.1em; }
+ .sidebar-box h3 a {
+ color: #363A3B; }
.sidebar-box .more {
text-align: right; }
.sidebar-box .event-list {
diff --git a/prawokultury/static/css/sidebar.scss b/prawokultury/static/css/sidebar.scss
index ecc6416..2ff8674 100755
--- a/prawokultury/static/css/sidebar.scss
+++ b/prawokultury/static/css/sidebar.scss
@@ -9,6 +9,10 @@
font-weight: normal;
margin-top: 0;
margin-bottom: 1.1em;
+
+ a {
+ color: #363A3B;
+ }
}
.more {
diff --git a/prawokultury/templates/base.html b/prawokultury/templates/base.html
index 9977e37..976b56e 100755
--- a/prawokultury/templates/base.html
+++ b/prawokultury/templates/base.html
@@ -52,7 +52,7 @@
{% trans "Add comment" %}
+ +