Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ocsms.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ross <greg@toolstack.com>2018-07-09 21:48:27 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-07-09 21:48:27 +0300
commit9b3d3808bf2b7e5a360c51da1c36d2102fe69e22 (patch)
tree3d619e24d83622d2283e874c61bfa562d967e72f /templates
parent3786ef6b050e5bc52bf76f9a86d8d0df54ac2879 (diff)
Display the contacts first initial in the app header. (#258)
If there is no avatar icon to match the contacts list style.
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php
index 37f104a..c66223b 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -66,8 +66,8 @@ use \OCA\OcSms\Lib\CountryCodes;
<div id="app-content-header" ng-show="!isConvLoading && selectedContact.label !== undefined && selectedContact.label !== ''"
ng-style="{'background-color': (selectedContact.uid | peerColor)}">
<div id="ocsms-contact-avatar">
- <img class="ocsms-plavatar-big" ng-src="{{ selectedContact.avatar }}"
- ng-show="selectedContact.avatar !== undefined" />
+ <img class="ocsms-plavatar-big" ng-show="selectedContact.avatar !== undefined" ng-src="{{ selectedContact.avatar }}" />
+ <div class="ocsms-plavatar-big" ng-show="selectedContact.avatar === undefined">{{ selectedContact.label | firstCharacter }}</div>
</div>
<div id="ocsms-contact-details">
<div id="ocsms-phone-label">{{ selectedContact.label }} </div>