webogram-i2p/app/partials/desktop/dialog.html

86 lines
4.3 KiB
HTML
Raw Normal View History

<a class="im_dialog" ng-mousedown="dialogSelect(dialogMessage.peerString, dialogMessage.unreadCount == -1 && dialogMessage.mid)">
2014-01-05 16:07:11 +00:00
<div class="im_dialog_meta pull-right text-right">
2014-03-25 14:39:17 +00:00
<div class="im_dialog_date" ng-bind="dialogMessage.dateText"></div>
<span
class="im_dialog_badge badge"
ng-show="dialogMessage.unreadCount > 0 && !dialogMessage.pFlags.out"
ng-bind="dialogMessage.unreadCount"
2015-11-29 17:49:54 +00:00
my-peer-muted="dialogMessage.peerID" muted-class="im_dialog_badge_muted"
></span>
<i
class="im_dialog_unread"
ng-show="dialogMessage.pFlags.out && dialogMessage.pFlags.unread"
></i>
2014-01-05 16:07:11 +00:00
</div>
<div class="im_dialog_photo pull-left" my-peer-photolink="::dialogMessage.peerID" img-class="im_dialog_photo" watch="true"></div>
2014-01-05 16:07:11 +00:00
<div class="im_dialog_message_wrap">
<div class="im_dialog_peer">
2015-10-08 17:11:31 +00:00
<span my-peer-link="dialogMessage.peerID" verified="true"></span>
2014-01-05 16:07:11 +00:00
</div>
<div ng-if="dialogMessage.typing > 0" class="im_dialog_message">
<span class="im_dialog_message_service" my-i18n="im_conversation_group_typing">
<my-i18n-param name="name"><span my-peer-link="dialogMessage.typing" short="true" class="im_dialog_chat_from_wrap"></span></my-i18n-param><my-i18n-param name="dots"><span my-loading-dots></span></my-i18n-param>
</span>
2015-02-07 10:50:30 +00:00
</div>
<div ng-show="!dialogMessage.typing" ng-switch="dialogMessage.deleted">
<div ng-switch-when="true" class="im_dialog_message">
2014-09-16 16:12:52 +00:00
<span class="im_dialog_message_text" my-i18n="conversation_message_deleted"></span>
</div>
<div ng-switch-default class="im_dialog_message">
2015-09-25 12:30:32 +00:00
<span ng-switch="dialogMessage.peerID > 0 || dialogMessage.fromID < 0">
2015-02-07 10:50:30 +00:00
<span ng-switch-when="true">
2015-11-23 10:23:55 +00:00
<span class="im_dialog_chat_from_wrap" ng-if="dialogMessage.pFlags.out && dialogMessage.fromID > 0">
2015-02-07 10:50:30 +00:00
<span
class="im_dialog_chat_from"
my-i18n="conversation_you"
></span><span ng-if="dialogMessage.message.length > 0 || !!dialogMessage.media">:</span>
2015-02-07 10:50:30 +00:00
</span>
</span>
<span ng-switch-default>
<span class="im_dialog_chat_from_wrap" ng-switch="dialogMessage.pFlags.out && dialogMessage._ != 'messageService'">
2015-02-07 10:50:30 +00:00
<span
ng-switch-when="false"
class="im_dialog_chat_from"
my-peer-link="dialogMessage.from_id" short="true" peer-watch="true"
2015-02-07 10:50:30 +00:00
></span><span
ng-switch-when="true"
class="im_dialog_chat_from"
my-i18n="conversation_you"
></span><span ng-if="dialogMessage.message.length || dialogMessage.media">:</span>
</span>
</span>
</span>
2014-01-05 16:07:11 +00:00
<span class="im_dialog_message_media" ng-if="dialogMessage.media" ng-switch="dialogMessage.media._">
2014-09-16 16:12:52 +00:00
<span ng-switch-when="messageMediaPhoto" my-i18n="conversation_media_photo"></span>
<span ng-switch-when="messageMediaVideo" my-i18n="conversation_media_video"></span>
2016-01-04 21:58:32 +00:00
<span ng-switch-when="messageMediaDocument" ng-switch="dialogMessage.media.document.isSpecial || false">
<span ng-switch-when="sticker">
2015-02-06 15:48:28 +00:00
<span ng-bind-html="dialogMessage.media.document.stickerEmoji"></span>
2016-01-04 21:58:32 +00:00
<my-i18n msgid="conversation_media_sticker"></my-i18n>
2015-02-06 15:48:28 +00:00
</span>
2016-01-04 21:58:32 +00:00
<span ng-switch-when="gif" my-i18n="conversation_media_gif"></span>
<span ng-switch-when="audio" my-i18n="conversation_media_audio"></span>
2015-01-02 12:31:29 +00:00
<span ng-switch-default ng-bind="dialogMessage.media.document.file_name"></span>
</span>
2014-09-16 16:12:52 +00:00
<span ng-switch-when="messageMediaAudio" my-i18n="conversation_media_audio"></span>
<span ng-switch-when="messageMediaGeo" my-i18n="conversation_media_location"></span>
2015-04-29 20:20:32 +00:00
<span ng-switch-when="messageMediaVenue" my-i18n="conversation_media_location"></span>
2014-09-16 16:12:52 +00:00
<span ng-switch-when="messageMediaContact" my-i18n="conversation_media_contact"></span>
</span>
2014-01-05 16:07:11 +00:00
<span class="im_dialog_message_service" ng-if="dialogMessage._ == 'messageService'" my-service-short-message="dialogMessage"></span>
2014-01-05 16:07:11 +00:00
<span class="im_dialog_message_text" ng-if="dialogMessage.message.length" ng-bind-html="dialogMessage.richMessage"></span>
</div>
2014-01-05 16:07:11 +00:00
</div>
</div>
</a>