From 1ac69d664ef258186b9252fc610ca7d777bbdd79 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 8 Feb 2007 20:19:41 +0000 Subject: [PATCH] Ajax-up the comments (References #5) and add user ratings (Closes #6). git-svn-id: http://svn.simon-cozens.org/memories/trunk@12 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- templates/header | 1 + templates/photo/comment | 46 +++++++++++++++-- templates/static/alt_star.gif | Bin 0 -> 1947 bytes templates/static/star.gif | Bin 0 -> 1120 bytes templates/static/star_rating.css | 84 +++++++++++++++++++++++++++++++ templates/static/star_small.gif | Bin 0 -> 263 bytes 6 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 templates/static/alt_star.gif create mode 100644 templates/static/star.gif create mode 100644 templates/static/star_rating.css create mode 100644 templates/static/star_small.gif diff --git a/templates/header b/templates/header index ada7f30..50c09d7 100644 --- a/templates/header +++ b/templates/header @@ -3,6 +3,7 @@ Memories - Photo Sharing [% IF photo %] - [% photo.title; END%] + [% IF photos %] diff --git a/templates/photo/comment b/templates/photo/comment index 498e5b6..f1c74da 100644 --- a/templates/photo/comment +++ b/templates/photo/comment @@ -1,3 +1,42 @@ +

Rate this photo! + +

+ + ([%photo.approx_rating%] out of [%photo.rated%] votes) +

+
[% FOR comment = photo.comments %]
@@ -6,10 +45,9 @@
[% END %]
-
- Name:
- + + Name:
+

diff --git a/templates/static/alt_star.gif b/templates/static/alt_star.gif new file mode 100644 index 0000000000000000000000000000000000000000..068fa7f3fa6bc50d2080aaf6cf82c60187b89f97 GIT binary patch literal 1947 zcmWlYdsx!<0>&BMuuwsa%&62XJ?yT$1>eLAcN!Q)1 zbZbRs<~p@-xmL|iYT9MGWl3JR-$X@_JN$qjUuN$g@ALlg{`GmD4>dn8ExmF9VjaSX zK)CMEpdYe? zP^4nX*zm}(P&hd;31B<$T7jWeH#Ie`83%HP_s7z1YO&a?R+G`B z9Uq@PDrE9;wOX&&E97$H%#6`!v{`LVhf^kzDisP~+X3EflZwSI$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d00001 diff --git a/templates/static/star.gif b/templates/static/star.gif new file mode 100644 index 0000000000000000000000000000000000000000..32633e30d43c43e8b412b7d47a80e2bd40c9a052 GIT binary patch literal 1120 zcmcJM{WIHl0DwOdny;5OK}77ZWYMi!dPHkp)=YF+5;fwbtgUU->6O~9Gwsb?Z;OaT zN=`_IzHE0fF)yvD)ltWqdRsQMF)`83d%P?Z^_B$re7F7)dwzcI`Q>4AKMV;?^8jbS z0sz~hlW>2=FgvFk9=583_kR5x9lW)mitj~JkPo|51*ZeYl@xnFt{jylT{Y=Eok0^FKb`u$KldBbnp_Kird%M z!qpzLiUr61liT4|I{cln*A~0DuweN)0dDJeTcV+91CD(KO?TlAAI@Z$Os2K9wVl#X zbW(v%<(U+baOIQz&IEJa$GeZOSq)ENUpUmo!L4j)S%UjUxZ43uayTJIwc&815zb~= z4PDUu_ul9|xIP3|A46j$8U+3is1{or97qR#uj8+u036CE3JQdUBC(i#v#3PK=Fk{q zsg#TmE7*!6JYK-y+!3)!w*@3zZ8Z^35_0Hx@-M}bQo2$|qIc2}n!JFG!y`U)#vKN& zmfhFVNF3-cAHGL=BEVyYD{zHRk%kgBeM*d5P|#`8e-?|{6|_f1BT~+`m@_NIufOWg zZw%Im3vms$NUo5gN3P5KkSasEvRT5mjV6kEaYu>^!oKl5Tb#nZawMUFc->{5X5*H8 zF+%0+qlyu5mM*Z295RK|tjs>EDsUhpZ#>Vnb(9?NKVRV)x-iFNIL#5g$Z2V6Kz=)? zXf$vIJiyU>-)l*oNq4iqh|cBAyhRn^k`TKLoq^@#ZpX)Bo0w$8E>U-)6^X7|7yVY6 z%p(AT9Qb&L=m^JH4*AdG6R%cvCTMLW-n`sT?^kaV$tRu5Iv&=vN?x={d1T&gUWaoa z@kCSLkL_-@UG-l2_)e}XqNNt8xiK!zONmh_zAfo&$w)BQOWlGk7Gsqd1#&gyhA)2Q zpu^=WH$6hXAjZ(*w(5?G4Ae9&H)G#lMf&#G;ks$TFr~db2xCyWxYTRpe>zw42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