Skip to content

Commit

Permalink
MDL-61778 message: Renamed online status icon and replaced Boost icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins committed Jun 1, 2018
1 parent 5b4ca9e commit d0f3b5f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/classes/output/icon_system_fontawesome.php
Expand Up @@ -360,6 +360,7 @@ public function get_core_icon_map() {
'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',
Expand Down
6 changes: 4 additions & 2 deletions message/templates/message_area_contact.mustache
Expand Up @@ -25,9 +25,11 @@
<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}}
Expand Down
Binary file added pix/t/online.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions pix/t/online.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion theme/boost/scss/moodle/message.scss
Expand Up @@ -33,7 +33,7 @@

&.online {
.online-text {
display: block;
display: inherit;
}
.offline-text {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion theme/bootstrapbase/less/moodle/message.less
Expand Up @@ -29,7 +29,7 @@

&.online {
.online-text {
display: block;
display: inherit;
}
.offline-text {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css
Expand Up @@ -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;
Expand Down

0 comments on commit d0f3b5f

Please sign in to comment.