forked from GNUsocial/gnu-social
Removed <dl> structure from NoticeListItem::showNoticeSource. Same as
commit e0b877b26c
.
This commit is contained in:
parent
9c09bfe4d7
commit
e378341910
@ -379,8 +379,8 @@ class NoticeListItem extends Widget
|
|||||||
function showNoticeSource()
|
function showNoticeSource()
|
||||||
{
|
{
|
||||||
if ($this->notice->source) {
|
if ($this->notice->source) {
|
||||||
$this->out->elementStart('dl', 'device');
|
$this->out->elementStart('span', 'source');
|
||||||
$this->out->element('dt', null, _('From'));
|
$this->out->text(_('from'));
|
||||||
$source_name = _($this->notice->source);
|
$source_name = _($this->notice->source);
|
||||||
switch ($this->notice->source) {
|
switch ($this->notice->source) {
|
||||||
case 'web':
|
case 'web':
|
||||||
@ -389,22 +389,22 @@ class NoticeListItem extends Widget
|
|||||||
case 'omb':
|
case 'omb':
|
||||||
case 'system':
|
case 'system':
|
||||||
case 'api':
|
case 'api':
|
||||||
$this->out->element('dd', null, $source_name);
|
$this->out->element('span', 'device', $source_name);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$ns = Notice_source::staticGet($this->notice->source);
|
$ns = Notice_source::staticGet($this->notice->source);
|
||||||
if ($ns) {
|
if ($ns) {
|
||||||
$this->out->elementStart('dd', null);
|
$this->out->elementStart('span', 'device');
|
||||||
$this->out->element('a', array('href' => $ns->url,
|
$this->out->element('a', array('href' => $ns->url,
|
||||||
'rel' => 'external'),
|
'rel' => 'external'),
|
||||||
$ns->name);
|
$ns->name);
|
||||||
$this->out->elementEnd('dd');
|
$this->out->elementEnd('span');
|
||||||
} else {
|
} else {
|
||||||
$this->out->element('dd', null, $source_name);
|
$this->out->element('span', 'device', $source_name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->out->elementEnd('dl');
|
$this->out->elementEnd('span');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -888,9 +888,6 @@ display:none;
|
|||||||
.notice div.entry-content a.timestamp {
|
.notice div.entry-content a.timestamp {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
.notice div.entry-content .device dt {
|
|
||||||
text-transform:lowercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notice-options {
|
.notice-options {
|
||||||
position:relative;
|
position:relative;
|
||||||
|
Loading…
Reference in New Issue
Block a user