From 6b4cdc6dbb0e3a2fd48053672dc75236ca9337d3 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Fri, 10 Aug 2007 05:02:52 +0000 Subject: [PATCH] Added icons (thanks WIll! :D) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39840 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/FeedbackAdmin.php | 8 +++++++- images/approvecomment.png | Bin 0 -> 1095 bytes images/declinecomment.png | Bin 0 -> 3798 bytes templates/Includes/CommentTableField.ss | 6 +++--- templates/Includes/FeedbackAdmin_SiteTree.ss | 6 +++--- 5 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 images/approvecomment.png create mode 100644 images/declinecomment.png diff --git a/code/FeedbackAdmin.php b/code/FeedbackAdmin.php index 8d68a1ad..43f4e066 100644 --- a/code/FeedbackAdmin.php +++ b/code/FeedbackAdmin.php @@ -16,7 +16,7 @@ class FeedbackAdmin extends LeftAndMain { return $this->getLastFormIn($this->renderWith('FeedbackAdmin_right')); } - public function EditForm() { + public function Section() { $url = rtrim($_SERVER['REQUEST_URI'], '/'); if(strrpos($url, '&')) { $url = substr($url, 0, strrpos($url, '&')); @@ -27,6 +27,12 @@ class FeedbackAdmin extends LeftAndMain { $section = 'accepted'; } + return $section; + } + + public function EditForm() { + $section = $this->Section(); + if($section == 'accepted') { $filter = 'IsSpam=0 AND NeedsModeration=0'; $title = "

Accepted Comments

"; diff --git a/images/approvecomment.png b/images/approvecomment.png new file mode 100644 index 0000000000000000000000000000000000000000..f9487f39d8b8fcc9ebc5f9f99ecc5ea90398353f GIT binary patch literal 1095 zcmV-N1i1T&P)idQBd$%V?g6W1uK!7h_>|)HYw4jp)oCKlg%bscQ=*!S>6b^okEIsDA7WRto0-puFF=L!~f#kyI8iZ@55$net!Nt z>*UE^0004iTux~#D|py6=(FYPhqXZusgID%pv5#`klH) z#W9^yxl_~ryMyJ}_&oUmq^IG@n!|WBvIiG(V;Id0W3fB~y8;}nc@6ujyWw&m7zC(B z8+FcICS@ojCBQkrJQq`|zk&$|OT{$y#`j~QFouQlG%5~opymXgsyzyy48l`@kOVGs z*7Zuoy;3ZSHlI&}lmLMbQGXL|7spXxmyxb4z*Ys=j)(5rSJ72>42F!t6+j>WWHKo@ ztbCqontxzvshF2i0sulZg5IY0usgC3u2fiN^I$H;@rF0?{EibaX#!FKe!l`>tJ&Gf zTcuL*L+!|s-mK%ex|F;%91a92rHJYYGz6QFEG(i}w(#uzui$Xwi_k;}%moM(45N%| z(|@E>soU>HBB2Y~(9i&zp3coO=2c21tCqVUq0s!etm;U}FnOy!YpSOD`T|N*D_^YF4y=pZYrDZ|o zWr6zqG0HihX#$0!Rj{ngq^8xa{rhWoH8OIOFjfc&;Z+0jG0rP3ob%dJDIYb>ct=ai z6U|EMh$mb%Hg;~ZSWF-9>wDum0Osr%!!U7cpZoA*|+TG=`a( zX*-pg{qoG2cdp;vrPzX`a!nAm%P@RcSeOx4um1A2X+{R`_2^px8Ai0*b@?MxQ{%-{ z>gF(|-uwOied}8W4Gw;$t*n%vv+ea~N~Qc)QhH}OcYhCuqj&!A{Rg+W4VTW1Q}O@+ N002ovPDHLkV1h_6_Obu~ literal 0 HcmV?d00001 diff --git a/images/declinecomment.png b/images/declinecomment.png new file mode 100644 index 0000000000000000000000000000000000000000..936360bbdb3da80a7d182351929fe3e31f338983 GIT binary patch literal 3798 zcmV;{4k_`8P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!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A%pyia~E^dTJ^)(M(lUYzqcSVrAhT z;5q=&bl5zI5OH8cJWPu?!jJ6*s1H&CoYy11CfsZo;T_a<9nbUX%XeLXJAfyFT;F?W zv@SuUGr)Wf>-a3PAHIp=l~H&e;E8%+hjY|w6`NX?ecm){vz!Bt0|)^~0W>B1K}t)Q zz(%Cx?TCpSLW3W}9Qhe8uV0!F7n75z(OfQbiZZ4j%4Wrv3kxNvYQ2h-!1NMDQtLtV zjl*EiAH=AC8w!uV4gG=L00E+nKr(p+3k$P-gai&N9UZ}Qo~QnqN~OD`^d3nh3{-5O z)Y=36-Uks#+zO?^fZ4kT`i_TD)tg~xz|7y*apBj&BZgso!Z|!5Z=7mqXf9eT+V4gp zc&@dzMG2@1{2-7X0e1nLOB5>vR!Jg}Ao#xjtI||zvBU2V&PjMDk#?%+*=gng? zGb1kq{OWcs9B%Xnf~xBY1}Iu2avNiez${qcPUR=VXjov(w~ENJD5X#oI_x+Y=C0II z)5-RHA+MkP;bioQC-=RxW$W6zLScq$*T&G_|J@PWE(^xk%|?I(KtKouA+$s&{Y}$2 z?&w$-rBs%U28P+$NsNzQI5swR>GaIZ4E_Uc9b5&B`58-%?6T_#gc<0Jt^Szy-tg@Bjb+ M07*qoM6N<$g7vBxcK`qY literal 0 HcmV?d00001 diff --git a/templates/Includes/CommentTableField.ss b/templates/Includes/CommentTableField.ss index cafd9cbf..687d67d6 100644 --- a/templates/Includes/CommentTableField.ss +++ b/templates/Includes/CommentTableField.ss @@ -47,13 +47,13 @@ edit <% end_if %> <% if HasAcceptButton %> - accept + accept <% end_if %> <% if HasSpamButton %> - spam + spam <% end_if %> <% if HasHamButton %> - ham + ham <% end_if %> <% if Can(delete) %> delete diff --git a/templates/Includes/FeedbackAdmin_SiteTree.ss b/templates/Includes/FeedbackAdmin_SiteTree.ss index 4411677c..94dc93c2 100644 --- a/templates/Includes/FeedbackAdmin_SiteTree.ss +++ b/templates/Includes/FeedbackAdmin_SiteTree.ss @@ -1,14 +1,14 @@