[extensions-web] Use the new HTML5 time tag



commit 2dedff89fd0f7ad5886fec4a7a52f22d297bc95e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Jun 2 22:15:32 2012 -0400

    Use the new HTML5 time tag

 .../extensions/templates/extensions/comments.html  |    2 +-
 sweettooth/review/templates/review/review.html     |    2 +-
 sweettooth/static/js/main.js                       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/comments.html b/sweettooth/extensions/templates/extensions/comments.html
index 62a9fd9..2a09838 100644
--- a/sweettooth/extensions/templates/extensions/comments.html
+++ b/sweettooth/extensions/templates/extensions/comments.html
@@ -18,7 +18,7 @@
       <a class="comment-author" href="{% url auth-profile user=comment.user.username %}">{{ comment.user }}</a>
     </div>
     <p>{{ comment.comment }}</p>
-    <abbr class="timestamp" title="{{ comment.submit_date|date:"c" }}">{{ comment.submit_date|date:"F j, Y" }}</abbr>
+    <time title="{{ comment.submit_date|date:"c" }}">{{ comment.submit_date|date:"F j, Y" }}</time>
   </div>
   <hr>
   {% empty %}
diff --git a/sweettooth/review/templates/review/review.html b/sweettooth/review/templates/review/review.html
index 0c34193..cf3d4be 100644
--- a/sweettooth/review/templates/review/review.html
+++ b/sweettooth/review/templates/review/review.html
@@ -104,7 +104,7 @@
     {% else %}
     posted a review
     {% endif %}
-    <abbr class="timestamp" title="{{ review.date|date:"c" }}">{{ review.date|date:"F j, Y" }}</abbr>
+    <time title="{{ review.date|date:"c" }}">{{ review.date|date:"F j, Y" }}</time>
     <blockquote>{{ review.comments }}</blockquote>
   </div>
   {% empty %}
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index ca1d79a..709c424 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -44,7 +44,7 @@ function($, messages, modal, hashParamUtils) {
             return false;
         });
 
-        $("abbr.timestamp").timeago();
+        $("time").timeago();
 
         var $userPopupLink = $('#global_domain_bar .user');
         var $userPopup = $('#global_domain_bar .user_popup');



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]