]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add indicator for limited-scope notices
authorEvan Prodromou <evan@status.net>
Sat, 26 Mar 2011 20:47:36 +0000 (16:47 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 26 Mar 2011 20:47:36 +0000 (16:47 -0400)
lib/noticelistitem.php
theme/rebase/css/display.css

index 17827d07ef6b97f9c3f5898d19c0039491a15e68..46f15f551d3fb63882550ad1e72fd0895f4edbca 100644 (file)
@@ -170,7 +170,11 @@ class NoticeListItem extends Widget
     {
         if (Event::handle('StartOpenNoticeListItemElement', array($this))) {
             $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
-            $this->out->elementStart('li', array('class' => 'hentry notice',
+            $class = 'hentry notice';
+            if ($this->notice->scope != 0 && $this->notice->scope != 1) {
+                $class .= ' limited-scope';
+            }
+            $this->out->elementStart('li', array('class' => $class,
                                                  'id' => 'notice-' . $id));
             Event::handle('EndOpenNoticeListItemElement', array($this));
         }
index 6c3c9e62961835f09c6d6cc109c3e3d3195ecaf5..9c019e62896bebb4565b0dd719e89356a2875f5b 100644 (file)
@@ -1156,6 +1156,11 @@ width:auto;
 margin-left:0;
 }
 
+.limited-scope .entry-content .timestamp:before {
+content:'☠';
+font-size:150%;
+}
+
 /* override OStatus plugin style */
 
 #form_ostatus_connect.form_settings.dialogbox, #form_ostatus_sub.dialogbox {