Removed <dl> structure from MailboxAction::showMessage. Same as

committ e0b877b26c.
This commit is contained in:
Sarven Capadisli 2009-08-31 17:52:45 +00:00 committed by Evan Prodromou
parent cae1072c0d
commit ba199ad4ec
1 changed files with 12 additions and 18 deletions

View File

@ -213,26 +213,20 @@ class MailboxAction extends CurrentUserDesignAction
} }
$this->elementStart('div', 'entry-content'); $this->elementStart('div', 'entry-content');
$this->elementStart('dl', 'timestamp');
$this->element('dt', null, _('Published'));
$this->elementStart('dd', null);
$dt = common_date_iso8601($message->created);
$this->elementStart('a', array('rel' => 'bookmark', $this->elementStart('a', array('rel' => 'bookmark',
'class' => 'timestamp',
'href' => $messageurl)); 'href' => $messageurl));
$dt = common_date_iso8601($message->created);
$this->element('abbr', array('class' => 'published', $this->element('abbr', array('class' => 'published',
'title' => $dt), 'title' => $dt),
common_date_string($message->created)); common_date_string($message->created));
$this->elementEnd('a'); $this->elementEnd('a');
$this->elementEnd('dd');
$this->elementEnd('dl');
if ($message->source) { if ($message->source) {
$this->elementStart('dl', 'device'); $this->elementStart('span', 'source');
$this->elementStart('dt'); $this->text(_('from'));
$this->text(_('From')); $this->element('span', 'device', $this->showSource($message->source));
$this->elementEnd('dt'); $this->elementEnd('span');
$this->showSource($message->source);
$this->elementEnd('dl');
} }
$this->elementEnd('div'); $this->elementEnd('div');
@ -277,18 +271,18 @@ class MailboxAction extends CurrentUserDesignAction
case 'mail': case 'mail':
case 'omb': case 'omb':
case 'api': case 'api':
$this->element('dd', null, $source_name); $this->element('span', 'device', $source_name);
break; break;
default: default:
$ns = Notice_source::staticGet($source); $ns = Notice_source::staticGet($source);
if ($ns) { if ($ns) {
$this->elementStart('dd', null); $this->elementStart('span', 'device');
$this->element('a', array('href' => $ns->url, $this->element('a', array('href' => $ns->url,
'rel' => 'external'), 'rel' => 'external'),
$ns->name); $ns->name);
$this->elementEnd('dd'); $this->elementEnd('span');
} else { } else {
$this->element('dd', null, $source_name); $this->out->element('span', 'device', $source_name);
} }
break; break;
} }