add indicator for limited-scope notices

This commit is contained in:
Evan Prodromou 2011-03-26 16:47:36 -04:00
parent e11c69fd81
commit 53a3fd822d
2 changed files with 10 additions and 1 deletions

View File

@ -170,7 +170,11 @@ class NoticeListItem extends Widget
{ {
if (Event::handle('StartOpenNoticeListItemElement', array($this))) { if (Event::handle('StartOpenNoticeListItemElement', array($this))) {
$id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id; $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)); 'id' => 'notice-' . $id));
Event::handle('EndOpenNoticeListItemElement', array($this)); Event::handle('EndOpenNoticeListItemElement', array($this));
} }

View File

@ -1156,6 +1156,11 @@ width:auto;
margin-left:0; margin-left:0;
} }
.limited-scope .entry-content .timestamp:before {
content:'☠';
font-size:150%;
}
/* override OStatus plugin style */ /* override OStatus plugin style */
#form_ostatus_connect.form_settings.dialogbox, #form_ostatus_sub.dialogbox { #form_ostatus_connect.form_settings.dialogbox, #form_ostatus_sub.dialogbox {