mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
contactlist: Drop a useless div to make conditional on ul
This commit is contained in:
parent
eb383cbee9
commit
81de9d6906
@ -50,15 +50,13 @@ use \OCA\OcSms\Lib\CountryCodes;
|
|||||||
<div class="contact-list-no-contact" v-if="orderedContacts.length === 0 && !isContactsLoading">
|
<div class="contact-list-no-contact" v-if="orderedContacts.length === 0 && !isContactsLoading">
|
||||||
<?php p($l->t('No contact found.'));?>
|
<?php p($l->t('No contact found.'));?>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="orderedContacts.length > 0 && !isContactsLoading">
|
<ul class="contact-list" v-if="orderedContacts.length > 0 && !isContactsLoading">
|
||||||
<ul class="contact-list">
|
<li v-for="contact in orderedContacts" peer-label="{{ contact.label }}" v-on:click="loadConversation(contact);" href="#">
|
||||||
<li v-for="contact in orderedContacts" peer-label="{{ contact.label }}" v-on:click="loadConversation(contact);" href="#">
|
<img class="ocsms-plavatar" :src="contact.avatar" v-if="contact.avatar !== undefined" />
|
||||||
<img class="ocsms-plavatar" :src="contact.avatar" v-if="contact.avatar !== undefined" />
|
<div class="ocsms-plavatar" v-if="contact.avatar === undefined" v-bind:style="{'backgroundColor': getContactColor(contact.uid) }">{{ contact.label | firstCharacter }}</div>
|
||||||
<div class="ocsms-plavatar" v-if="contact.avatar === undefined" v-bind:style="{'backgroundColor': getContactColor(contact.uid) }">{{ contact.label | firstCharacter }}</div>
|
<a class="ocsms-plname" style="{{ contact.unread > 0 ? 'font-weight:bold;' : ''}}" mailbox-label="{{ contact.label }}" mailbox-navigation="{{ contact.nav }}">{{ contact.label }}{{ contact.unread > 0 ? ' (' + contact.unread + ') ' : '' }}</a>
|
||||||
<a class="ocsms-plname" style="{{ contact.unread > 0 ? 'font-weight:bold;' : ''}}" mailbox-label="{{ contact.label }}" mailbox-navigation="{{ contact.nav }}">{{ contact.label }}{{ contact.unread > 0 ? ' (' + contact.unread + ') ' : '' }}</a>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="app-settings">
|
<div id="app-settings">
|
||||||
<div id="app-settings-header">
|
<div id="app-settings-header">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user