Merge branch 'MDL-65127-master' of git://github.com/sarjona/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 4 Apr 2019 22:21:20 +0000 (00:21 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 4 Apr 2019 22:21:20 +0000 (00:21 +0200)
1  2 
message/amd/build/message_drawer_view_overview_section.min.js
message/amd/src/message_drawer_view_overview_section.js
message/templates/message_drawer_conversations_list.mustache
message/templates/message_drawer_view_overview_header.mustache
message/templates/message_popover.mustache

          <div class="d-flex align-self-stretch">
              <div
                  class="px-2 py-1 small position-absolute position-right text-muted {{^lastmessagedate}}hidden{{/lastmessagedate}}"
-                 data-region="last-message-date"
+                 data-region="last-message-date" aria-hidden="true"
              >
                  {{#lastmessagedate}}
 -                    {{#userdate}} {{.}}, {{#str}} strftimetime24, core_langconfig  {{/str}} {{/userdate}}
 +                    {{#istoday}}
 +                        {{#userdate}} {{.}}, {{#str}} strftimetime24, core_langconfig  {{/str}} {{/userdate}}
 +                    {{/istoday}}
 +                    {{^istoday}}
 +                        {{#userdate}} {{.}}, {{#str}} strftimedatefullshort, core_langconfig  {{/str}} {{/userdate}}
 +                    {{/istoday}}
 +
                  {{/lastmessagedate}}
              </div>
              <div class="d-flex align-self-center align-items-center">
          </div>
      </div>
      <div class="text-right mt-3">
 -        <a href="#" data-route="view-contacts">
 +        <a href="#" data-route="view-contacts" role="button">
              {{#pix}} i/user, core {{/pix}}
              {{#str}} contacts, core_message {{/str}}
-             <span class="badge bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}" data-region="contact-request-count">
+             <span class="badge bg-primary ml-2 {{^contactrequestcount}}hidden{{/contactrequestcount}}"
+             data-region="contact-request-count"
+             aria-label="{{#str}} pendingcontactrequests, core_message, {{contactrequestcount}} {{/str}}">
                  {{contactrequestcount}}
              </span>
          </a>
      }
  
  }}
 -<div class="pull-right popover-region collapsed">
 -    <a id="message-drawer-toggle-{{uniqid}}" class="nav-link d-inline-block popover-region-toggle position-relative" href="#">
 +<div class="float-right popover-region collapsed">
 +    <a id="message-drawer-toggle-{{uniqid}}" class="nav-link d-inline-block popover-region-toggle position-relative" href="#"
 +            role="button">
          {{#pix}} t/message, core, {{#str}} togglemessagemenu, message {{/str}} {{/pix}}
-         <div class="count-container {{^unreadcount}}hidden{{/unreadcount}}" data-region="count-container">{{unreadcount}}</div>
+         <div class="count-container {{^unreadcount}}hidden{{/unreadcount}}" data-region="count-container"
+         aria-label="{{#str}} unreadconversations, core_message, {{unreadcount}} {{/str}}">{{unreadcount}}</div>
      </a>
  </div>