]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Initial representation for repeated notice
authorSarven Capadisli <csarven@status.net>
Mon, 14 Dec 2009 23:09:08 +0000 (18:09 -0500)
committerSarven Capadisli <csarven@status.net>
Mon, 14 Dec 2009 23:09:08 +0000 (18:09 -0500)
actions/repeat.php
lib/noticelist.php
theme/base/css/display.css
theme/base/images/icons/icons-01.gif
theme/base/images/icons/twotone/green/recycle-02.gif [new file with mode: 0644]
theme/default/css/display.css
theme/identica/css/display.css

index a1c5f443fb70507876009423d9419d9c9d08e8de..38d6efa6c66bbc5f1c692beb91e30472986468de 100644 (file)
@@ -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 {
index dd0a361c0c4e44d9a81bc50ac519407800451d60..2165222eec4e5b398eca14b2f3f09f42ce0b770e 100644 (file)
@@ -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();
index 0173d2fbb229005412a838916ba5de2b8a0052d7..2f463639155a78415165075eef74517ab3eaeeff 100644 (file)
@@ -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;
 }
index 5909d7b19cdee858a479674064bff32745ebc122..417327881cca88cf17a416642ea8ad15d0589a0e 100644 (file)
Binary files a/theme/base/images/icons/icons-01.gif and b/theme/base/images/icons/icons-01.gif differ
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 (file)
index 0000000..060a8c7
Binary files /dev/null and b/theme/base/images/icons/twotone/green/recycle-02.gif differ
index e0dda3de287c949c90f7db9b0dd2154e812a6470..f1d9a9d0b05681fdd4a9143130dece56a95e08c8 100644 (file)
@@ -173,7 +173,8 @@ button.close,
 .entity_moderation p,
 .entity_sandbox input.submit,
 .entity_silence input.submit,
-.entity_delete input.submit {
+.entity_delete input.submit,
+.notice-options .repeated {
 background-image:url(../../base/images/icons/icons-01.gif);
 background-repeat:no-repeat;
 background-color:transparent;
@@ -338,6 +339,9 @@ background-position:0 -658px;
 .notice-options form.form_repeat input.submit {
 background-position:0 -1582px;
 }
+.notice-options .repeated {
+background-position:0 -1648px;
+}
 
 .notices div.entry-content,
 .notices div.notice-options {
index 999af973c67f785402aa538e3bf599c05af30295..aa02070ac53cbb201ca96ad562e7187d9a4bf0a2 100644 (file)
@@ -173,7 +173,8 @@ button.close,
 .entity_moderation p,
 .entity_sandbox input.submit,
 .entity_silence input.submit,
-.entity_delete input.submit {
+.entity_delete input.submit,
+.notice-options .repeated {
 background-image:url(../../base/images/icons/icons-01.gif);
 background-repeat:no-repeat;
 background-color:transparent;
@@ -337,6 +338,9 @@ background-position:0 -658px;
 .notice-options form.form_repeat input.submit {
 background-position:0 -1582px;
 }
+.notice-options .repeated {
+background-position:0 -1648px;
+}
 
 .notices div.entry-content,
 .notices div.notice-options {