From f8b187d5a4ac5eab1f025d61e30d5244cef6123d Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Mon, 14 Dec 2009 18:09:08 -0500 Subject: [PATCH] Initial representation for repeated notice --- actions/repeat.php | 4 +++- lib/noticelist.php | 4 +++- theme/base/css/display.css | 15 +++++++++------ theme/base/images/icons/icons-01.gif | Bin 3154 -> 3201 bytes .../images/icons/twotone/green/recycle-02.gif | Bin 0 -> 77 bytes theme/default/css/display.css | 6 +++++- theme/identica/css/display.css | 6 +++++- 7 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 theme/base/images/icons/twotone/green/recycle-02.gif diff --git a/actions/repeat.php b/actions/repeat.php index a1c5f443fb..38d6efa6c6 100644 --- a/actions/repeat.php +++ b/actions/repeat.php @@ -112,7 +112,9 @@ class RepeatAction extends Action $this->element('title', null, _('Repeated')); $this->elementEnd('head'); $this->elementStart('body'); - $this->element('p', array('id' => 'repeat_response'), _('Repeated!')); + $this->element('p', array('id' => 'repeat_response', + 'class' => 'repeated'), + _('Repeated!')); $this->elementEnd('body'); $this->elementEnd('html'); } else { diff --git a/lib/noticelist.php b/lib/noticelist.php index dd0a361c0c..2165222eec 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -627,7 +627,9 @@ class NoticeListItem extends Widget if ($user && $user->id != $this->notice->profile_id) { $profile = $user->getProfile(); if ($profile->hasRepeated($this->notice->id)) { - $this->out->text(_('Repeated')); + $this->out->element('span', array('class' => 'repeated', + 'title' => _('Notice repeated')), + _('Repeated')); } else { $rf = new RepeatForm($this->out, $this->notice); $rf->show(); diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 0173d2fbb2..2f46363915 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -964,7 +964,7 @@ float:left; font-size:0.95em; margin-left:59px; min-width:60%; -max-width:74%; +max-width:70%; } #showstream .notice div.entry-content, #shownotice .notice div.entry-content { @@ -996,7 +996,7 @@ left:0; .notice-options { position:relative; font-size:0.95em; -width:90px; +width:125px; float:right; } @@ -1007,16 +1007,18 @@ float:left; .notice-options .notice_reply, .notice-options .form_repeat, .notice-options .form_favor, -.notice-options .form_disfavor { +.notice-options .form_disfavor, +.notice-options .repeated { float:left; -margin-left:20%; +margin-left:14%; } .notice-options .form_favor, .notice-options .form_disfavor { margin-left:0; } .notice-options input, -.notice-options a { +.notice-options a, +.notice-options .repeated { text-indent:-9999px; outline:none; } @@ -1047,7 +1049,8 @@ display:none; border:0; padding:0; } -.notice-options a { +.notice-options a, +.notice-options .repeated { width:16px; height:16px; } diff --git a/theme/base/images/icons/icons-01.gif b/theme/base/images/icons/icons-01.gif index 5909d7b19cdee858a479674064bff32745ebc122..417327881cca88cf17a416642ea8ad15d0589a0e 100644 GIT binary patch delta 1081 zcmV-91jhT)7=alKM@dFFIbj+AfClILkqr8i2?2_emH}h4`~d|4fBF9Z{{Q^{|NsC0 z|NsC0|NsC0|NkNR1OW;F{{Soi0000Q0DuMn2>t;7{UdcELxvNi1pb4z;sSvSE1)Ty zD3HjACUN3486o7~oCz;1X|lw^!5oSLLya(G=*}IMBZySc!|WHWU&ZuP0FfX8iG=@3 zG`VvnuS*xB|@klJ}@XCVZvm?(qA?)O9cQ3 z5CCWE5~wu92ZIYHG=`{Ass#CaYO!16mgo#kt38{G#4o3L#3*fJan8GN-|~2 zNGOO`$caQx5}cDm1W$ikY(YjEYrIhh9)G+cVGm0vp+po_kdX>3f*kV5C!=^`M}$ih zu|yPGobiY^O?zj`rGtF=#3o4B&2*w$8;Bw6;?A(8Ik2|hpgUu+PC=y{B z{&)z&$TRKeql+y1xRVVkpFDy`gl`CPDk;|?m- zRC5R(X+-!3mfTQ-O|t0RL(QC@s6j@Ailmt+Hs?(93^~z|!%ie*Y{9N7tLUN&D$Qhb zO)$bnaz+(Wu)BZCDypF3i7VuwGm08#d{M;`2`^}eCux2n2_vxhLh%<-e3^uVb|~_Q zB6!sCMjB*%vBi%k?`ZSQIOnYM&OG<*^UpvBE%eYt7j5*>NGB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ub9nA+{ zjT@HuQ;!kH_@hh>@)OV(;PwerXwD0w*u)RSpa?U}016V~8{^1;yXooR1~r&L0ODtDv+Jn(%}uOrZ)_$if!7@P#mpp$umTB9jdVD*@=UIS1YZ0XUNw3^fG` H5fA`7_ISJi diff --git a/theme/base/images/icons/twotone/green/recycle-02.gif b/theme/base/images/icons/twotone/green/recycle-02.gif new file mode 100644 index 0000000000000000000000000000000000000000..060a8c72f001d4fe1561bfa8130f5a379a6b2c06 GIT binary patch literal 77 zcmZ?wbhEHb6krfwXkcWBpCa)8|9{1wEQ|~cj0`#qKmd|qU{dMnUwN91F{yduzSNhY eS5I=5b-t)&UzxbfGH+?h&h={NH9E{$8LR