Ver Fonte

Put timestamp in a <time> tag for better semantics and easier styling

Kim Alvefur há 7 anos atrás
pai
commit
a82f950e3c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/templates/message.html

+ 2 - 1
src/templates/message.html

@@ -1,4 +1,5 @@
 <div class="message chat-message {{{o.extra_classes}}}" data-isodate="{{{o.isodate}}}" data-msgid="{{{o.msgid}}}">
 <div class="message chat-message {{{o.extra_classes}}}" data-isodate="{{{o.isodate}}}" data-msgid="{{{o.msgid}}}">
-    <span class="chat-msg-author chat-msg-{{{o.sender}}}">{{{o.time}}} {{{o.username}}}:&nbsp;</span>
+    <time timestamp="{{{o.isodate}}}">{{{o.time}}}</time>
+    <span class="chat-msg-author chat-msg-{{{o.sender}}}">{{{o.username}}}:&nbsp;</span>
     <span class="chat-msg-content"><!-- message gets added here via renderMessage --></span>
     <span class="chat-msg-content"><!-- message gets added here via renderMessage --></span>
 </div>
 </div>