]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Removed <dl> structure from NoticeListItem::showNoticeSource. Same as
authorSarven Capadisli <csarven@controlyourself.ca>
Sat, 25 Jul 2009 18:22:05 +0000 (18:22 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Sat, 25 Jul 2009 18:22:05 +0000 (18:22 +0000)
commit e0b877b26c5e93809b2a53b6c46326d5e31fa0e8.

lib/noticelist.php
theme/base/css/display.css

index a3d20025f63cbcac602101f3a1def970347cc900..7d363a5a2496652216dc78cc701be6741371a3a5 100644 (file)
@@ -379,8 +379,8 @@ class NoticeListItem extends Widget
     function showNoticeSource()
     {
         if ($this->notice->source) {
-            $this->out->elementStart('dl', 'device');
-            $this->out->element('dt', null, _('From'));
+            $this->out->elementStart('span', 'source');
+            $this->out->text(_('from'));
             $source_name = _($this->notice->source);
             switch ($this->notice->source) {
              case 'web':
@@ -389,22 +389,22 @@ class NoticeListItem extends Widget
              case 'omb':
              case 'system':
              case 'api':
-                $this->out->element('dd', null, $source_name);
+                $this->out->element('span', 'device', $source_name);
                 break;
              default:
                 $ns = Notice_source::staticGet($this->notice->source);
                 if ($ns) {
-                    $this->out->elementStart('dd', null);
+                    $this->out->elementStart('span', 'device');
                     $this->out->element('a', array('href' => $ns->url,
                                                    'rel' => 'external'),
                                         $ns->name);
-                    $this->out->elementEnd('dd');
+                    $this->out->elementEnd('span');
                 } else {
-                    $this->out->element('dd', null, $source_name);
+                    $this->out->element('span', 'device', $source_name);
                 }
                 break;
             }
-            $this->out->elementEnd('dl');
+            $this->out->elementEnd('span');
         }
     }
 
index 8b9fcd309d7fdb11b4b90f40e55dcc13c8906eba..3b3c0e19f1b91c5556b5d4119386ec5f6178ec36 100644 (file)
@@ -888,9 +888,6 @@ display:none;
 .notice div.entry-content a.timestamp {
 display:inline-block;
 }
-.notice div.entry-content .device dt {
-text-transform:lowercase;
-}
 
 .notice-options {
 position:relative;