MDL-61778 message: Renamed online status icon and replaced Boost icon
authorMichael Hawkins <michaelh@moodle.com>
Tue, 22 May 2018 03:25:19 +0000 (11:25 +0800)
committerMichael Hawkins <michaelh@moodle.com>
Fri, 1 Jun 2018 02:15:11 +0000 (10:15 +0800)
lib/classes/output/icon_system_fontawesome.php
message/templates/message_area_contact.mustache
pix/t/online.png [new file with mode: 0644]
pix/t/online.svg [new file with mode: 0644]
theme/boost/scss/moodle/message.scss
theme/bootstrapbase/less/moodle/message.less
theme/bootstrapbase/style/moodle.css

index 0650971..71d15a6 100644 (file)
@@ -360,6 +360,7 @@ class icon_system_fontawesome extends icon_system_font {
             'core:t/message' => 'fa-comment',
             'core:t/more' => 'fa-caret-down',
             'core:t/move' => 'fa-arrows-v',
+            'core:t/online' => 'fa-circle',
             'core:t/passwordunmask-edit' => 'fa-pencil',
             'core:t/passwordunmask-reveal' => 'fa-eye',
             'core:t/portfolioadd' => 'fa-plus',
index f63e959..2ca50f2 100644 (file)
         <div class="name">
             {{fullname}}
             {{#showonlinestatus}}
-                <span {{^isonline}}class="hidden"{{/isonline}} data-region="contact-icon-online">
-                    {{#pix}} t/go, core, {{#str}} online, message {{/str}} {{/pix}}
+            <div {{#isonline}}class="d-inline status online"{{/isonline}}{{^isonline}}class="hidden"{{/isonline}}>
+                <span class="online-text" data-region="contact-icon-online">
+                    {{#pix}} t/online, core, {{#str}} online, message {{/str}} {{/pix}}
                 </span>
+            </div>
             {{/showonlinestatus}}
             <span {{^isblocked}}class="hidden"{{/isblocked}} data-region="contact-icon-blocked">
                 {{#pix}} t/block, core, {{#str}} contactblocked, message {{/str}} {{/pix}}
diff --git a/pix/t/online.png b/pix/t/online.png
new file mode 100644 (file)
index 0000000..c449d4a
Binary files /dev/null and b/pix/t/online.png differ
diff --git a/pix/t/online.svg b/pix/t/online.svg
new file mode 100644 (file)
index 0000000..64f57e9
--- /dev/null
@@ -0,0 +1,3 @@
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [\r
+       <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">\r
+]><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" preserveAspectRatio="xMinYMid meet" overflow="visible"><circle cx="6" cy="6" r="6" fill="#7d7"/></svg>
\ No newline at end of file
index 8c7846d..11be4f6 100644 (file)
@@ -33,7 +33,7 @@
 
         &.online {
             .online-text {
-                display: block;
+                display: inherit;
             }
             .offline-text {
                 display: none;
index ef42132..70aa519 100644 (file)
@@ -29,7 +29,7 @@
 
         &.online {
             .online-text {
-                display: block;
+                display: inherit;
             }
             .offline-text {
                 display: none;
index 6b31450..eb20dce 100644 (file)
@@ -8128,7 +8128,7 @@ a.ygtvspacer:hover {
   color: #ff6961;
 }
 .messaging-area-container .status.online .online-text {
-  display: block;
+  display: inherit;
 }
 .messaging-area-container .status.online .offline-text {
   display: none;