MDL-56391 core_message: addressed confusing links on the profile page

1) Use the string 'Send message' rather than 'View messages'.
2) Removed the 'View messages' string as it is no longer used
   and was introduced in the new messaging UI.
3) Removed the 'View profile' link and made the user's profile
   picture a link to their profile instead, this was only
   recently plausible because of MDL-57036.
This commit is contained in:
Mark Nelson
2016-11-22 14:35:19 +08:00
parent cd4a6b8b0b
commit 9c6c29932a
2 changed files with 6 additions and 6 deletions
-1
View File
@@ -123,7 +123,6 @@ $string['unreadnewmessage'] = 'New message from {$a}';
$string['userisblockingyou'] = 'This user has blocked you from sending messages to them';
$string['userisblockingyounoncontact'] = '{$a} only accepts messages from their contacts.';
$string['viewinganotherusersmessagearea'] = 'You are viewing another user\'s message area.';
$string['viewmessages'] = 'View messages';
$string['viewmessageswith'] = 'View messages with {$a}';
$string['viewnotificationresource'] = 'Go to: {$a}';
$string['viewunreadmessageswith'] = 'View unread messages with {$a}';
@@ -21,7 +21,11 @@
</div>
<div class="profile" data-userid="{{userid}}" data-region="profile">
<div class="user-container">
<img class="profile-picture" src="{{profileimageurl}}" alt="" />
<a data-action="profile-view" href="#">
<img class="profile-picture" src="{{profileimageurl}}"
alt="{{#str}}pictureof, moodle, {{fullname}}{{/str}}"
title="{{#str}}pictureof, moodle, {{fullname}}{{/str}}" />
</a>
<div class="name-container">
<div class="name">{{fullname}}</div>
<div class="status {{#isonline}}online{{/isonline}}">
@@ -37,10 +41,7 @@
</div>
<div class="actions">
<div class="separator">
<a data-action="profile-view" href="#">{{#str}}viewprofile{{/str}}</a>
</div>
<div class="separator">
<a data-action="profile-send-message" href="#">{{#str}}viewmessages, message{{/str}}</a>
<a data-action="profile-send-message" href="#">{{#str}}sendmessage, message{{/str}}</a>
</div>
<div class="separator">
{{#isblocked}}