]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
"In conversation" text in noticelistitem
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 8 Apr 2016 11:44:22 +0000 (13:44 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 8 Apr 2016 11:44:22 +0000 (13:44 +0200)
lib/noticelistitem.php

index a0dcf6f30c5e218172e33dc3cf697114df6e86b4..cbff03d973d3ad71133c09f2a24cf8661ab425e0 100644 (file)
@@ -189,6 +189,7 @@ class NoticeListItem extends Widget
     function showNoticeInfo()
     {
         if (Event::handle('StartShowNoticeInfo', array($this))) {
+            $this->showContextLink();
             $this->showNoticeLink();
             $this->showNoticeSource();
             $this->showNoticeLocation();
@@ -375,14 +376,10 @@ class NoticeListItem extends Widget
      */
     function showNoticeLink()
     {
-        $this->out->elementStart('a', array('rel' => 'bookmark',
-                                            'class' => 'timestamp',
-                                            'href' => Conversation::getUrlFromNotice($this->notice)));
         $this->out->element('time', array('class' => 'dt-published',
                                           'datetime' => common_date_iso8601($this->notice->created),
                                           'title' => common_exact_date($this->notice->created)),
                             common_date_string($this->notice->created));
-        $this->out->elementEnd('a');
     }
 
     /**
@@ -568,6 +565,18 @@ class NoticeListItem extends Widget
         }
     }
 
+    /**
+     * Show link to conversation view.
+     */
+    function showContextLink()
+    {
+        $this->out->element('a', array('rel' => 'bookmark',
+                                            'class' => 'timestamp',
+                                            'href' => Conversation::getUrlFromNotice($this->notice)),
+                            // TRANS: A link to the conversation view of a notice, on the local server.
+                            _('In conversation'));
+    }
+
     /**
      * show a link to reply to the current notice
      *