]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Init UI for Repeated by
authorSarven Capadisli <csarven@status.net>
Mon, 14 Dec 2009 01:00:09 +0000 (20:00 -0500)
committerSarven Capadisli <csarven@status.net>
Mon, 14 Dec 2009 01:00:09 +0000 (20:00 -0500)
lib/noticelist.php
theme/base/css/display.css

index aa6ea278c98e4a828a6590c7e9bdcd04deb8a2b3..a106478eddf120a286e95891195175bbab1b8f24 100644 (file)
@@ -535,17 +535,19 @@ class NoticeListItem extends Widget
 
             $repeater = Profile::staticGet('id', $this->repeat->profile_id);
 
-            $attrs = array('href' => $repeater->profileurl,
+            $attrs = array('href' => $this->profile->profileurl,
                            'class' => 'url');
 
             if (!empty($repeater->fullname)) {
                 $attrs['title'] = $repeater->fullname . ' (' . $repeater->nickname . ')';
             }
 
-            $this->out->elementStart('span', 'repeat');
+            $this->out->elementStart('span', 'repeat vcard');
 
             $this->out->elementStart('a', $attrs);
 
+            $this->out->raw(_('Repeated by'));
+
             $avatar = $repeater->getAvatar(AVATAR_MINI_SIZE);
 
             $this->out->element('img', array('src' => ($avatar) ?
@@ -559,12 +561,9 @@ class NoticeListItem extends Widget
                                              $repeater->fullname :
                                              $repeater->nickname));
 
+            $this->out->element('span', 'nickname', $repeater->nickname);
             $this->out->elementEnd('a');
 
-            $text_link = XMLStringer::estring('a', $attrs, $repeater->nickname);
-
-            $this->out->raw(sprintf(_('Repeated by %s'), $text_link));
-
             $this->out->elementEnd('span');
         }
     }
index bab6431b9aa2ab2add6c2d0798970843c57cf122..0173d2fbb229005412a838916ba5de2b8a0052d7 100644 (file)
@@ -982,6 +982,17 @@ font-size:1.025em;
 display:inline-block;
 }
 
+.entry-content .repeat {
+display:block;
+}
+.entry-content .repeat .photo {
+float:none;
+margin-right:1px;
+position:relative;
+top:4px;
+left:0;
+}
+
 .notice-options {
 position:relative;
 font-size:0.95em;