]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Using abbr.published @title and ISO8601
authorcsarven <csarven@controlyourself.ca>
Wed, 3 Dec 2008 22:06:37 +0000 (17:06 -0500)
committercsarven <csarven@controlyourself.ca>
Wed, 3 Dec 2008 22:06:37 +0000 (17:06 -0500)
darcs-hash:20081203220637-eefa4-5a9db2b3b178c6a7e4edb43b72c392215ed3e004.gz

actions/showstream.php
lib/stream.php
theme/default/display.css

index 4cf216566b395a3950f230b542e0ad1a9cf8ee41..bd1b8a7de3acdc9b015f59386e5a8c8d4736b4cd 100644 (file)
@@ -451,7 +451,7 @@ class ShowstreamAction extends StreamAction {
                }
                $noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
                # FIXME: URL, image, video, audio
-               common_element_start('p', 'entry-title entry-content');
+               common_element_start('p', 'entry-title');
                if ($notice->rendered) {
                        common_raw($notice->rendered);
                } else {
@@ -462,11 +462,14 @@ class ShowstreamAction extends StreamAction {
                }
                common_element_end('p');
                common_element_start('p', array('class' => 'time'));
-               common_element('a', array('class' => 'permalink published',
+               common_element_start('a', array('class' => 'permalink',
                                                                  'rel' => 'bookmark',
-                                                                 'href' => $noticeurl,
-                                                                 'title' => common_exact_date($notice->created)),
-                                          common_date_string($notice->created));
+                                                                 'href' => $noticeurl));
+               common_element('abbr', array('class' => 'published',
+                                                                        'title' => common_date_iso8601($notice->created)),
+                                               common_date_string($notice->created));
+               common_element_end('a');
+
                if ($notice->source) {
                        common_text(_(' from '));
                        $this->source_link($notice->source);
index 37edfc9780b6551c90a1e5afff625c7f2cc9312e..907803eab4bf0d875feac584b5cba93e88a4c077 100644 (file)
@@ -78,7 +78,7 @@ class StreamAction extends PersonalAction {
                                           $profile->nickname);
                common_element_end('span');
                # FIXME: URL, image, video, audio
-               common_element_start('p', array('class' => 'content entry-title entry-content'));
+               common_element_start('p', array('class' => 'content entry-title'));
                if ($notice->rendered) {
                        common_raw($notice->rendered);
                } else {
@@ -94,11 +94,14 @@ class StreamAction extends PersonalAction {
                        $noticeurl = $notice->uri;
                }
                common_element_start('p', 'time');
-               common_element('a', array('class' => 'permalink published',
+               common_element_start('a', array('class' => 'permalink',
                                                                  'rel' => 'bookmark',
-                                                                 'href' => $noticeurl,
-                                                                 'title' => common_exact_date($notice->created)),
-                                          common_date_string($notice->created));
+                                                                 'href' => $noticeurl));
+               common_element('abbr', array('class' => 'published',
+                                                                        'title' => common_date_iso8601($notice->created)),
+                                               common_date_string($notice->created));
+               common_element_end('a');
+
                if ($notice->source) {
                        common_text(_(' from '));
                        $this->source_link($notice->source);
index 7186c73f239b22dc2499dc47555124a56175d1e1..98c20474a2294dc3ba0e131a2c3f20e652bfe7e5 100644 (file)
@@ -72,6 +72,8 @@ p#branding a {
        color: #fff6d5;
 }
 
+abbr.published { border-bottom:0; }
+
 /* ===== Begin Navigation Styling ===== */
 
 /* ----- Navigation ------ */