|
|
@ -7,6 +7,7 @@ |
|
|
|
<span ng-switch-when="true" class="audio_player_duration" ng-bind="mediaPlayer.player.currentTime | durationRemains : (mediaPlayer.player.duration || audio.duration)"></span> |
|
|
|
<span ng-switch-when="true" class="audio_player_duration" ng-bind="mediaPlayer.player.currentTime | durationRemains : (mediaPlayer.player.duration || audio.duration)"></span> |
|
|
|
<span ng-switch-default class="audio_player_duration" ng-bind="mediaPlayer.player.duration || audio.duration | duration"></span> |
|
|
|
<span ng-switch-default class="audio_player_duration" ng-bind="mediaPlayer.player.duration || audio.duration | duration"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<span class="copyonly">[ </span> |
|
|
|
<a ng-click="download()" class="audio_player_title" ng-switch="::audio.audioTitle.length > 0 ? 2 : (audio.file_name.length > 0 ? 1 : 0)"> |
|
|
|
<a ng-click="download()" class="audio_player_title" ng-switch="::audio.audioTitle.length > 0 ? 2 : (audio.file_name.length > 0 ? 1 : 0)"> |
|
|
|
<span ng-switch-when="2"> |
|
|
|
<span ng-switch-when="2"> |
|
|
|
<strong ng-bind="::audio.audioPerformer"></strong> |
|
|
|
<strong ng-bind="::audio.audioPerformer"></strong> |
|
|
@ -15,19 +16,20 @@ |
|
|
|
<span ng-switch-when="1" ng-bind="::audio.file_name"></span> |
|
|
|
<span ng-switch-when="1" ng-bind="::audio.file_name"></span> |
|
|
|
<span ng-switch-default my-i18n="message_attach_audio_message"></span> |
|
|
|
<span ng-switch-default my-i18n="message_attach_audio_message"></span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
<span class="copyonly">]</span> |
|
|
|
<i ng-if="::message.pFlags.media_unread || false" ng-show="message.pFlags.media_unread" class="icon icon-audio-unread"></i> |
|
|
|
<i ng-if="::message.pFlags.media_unread || false" ng-show="message.pFlags.media_unread" class="icon icon-audio-unread"></i> |
|
|
|
<div class="audio_player_meta" ng-if="!audio.downloaded || !(mediaPlayer.player.duration || audio.duration)" ng-switch="audio.progress.enabled"> |
|
|
|
<div class="audio_player_meta" ng-if="!audio.downloaded || !(mediaPlayer.player.duration || audio.duration)" ng-switch="audio.progress.enabled"> |
|
|
|
<span ng-switch-when="true" class="audio_player_size" ng-bind="audio.progress | formatSizeProgress"></span> |
|
|
|
<span ng-switch-when="true" class="audio_player_size" ng-bind="audio.progress | formatSizeProgress"></span> |
|
|
|
<span ng-switch-default class="audio_player_size" ng-bind="audio.size | formatSize"></span> |
|
|
|
<span ng-switch-default class="audio_player_size" ng-bind="audio.size | formatSize"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="audio_player_actions" ng-if="!audio.progress.enabled && !audio.downloaded"> |
|
|
|
<div class="audio_player_actions noselect" ng-if="!audio.progress.enabled && !audio.downloaded"> |
|
|
|
<a ng-if="audio._ == 'document'" ng-click="download()" my-i18n="message_attach_document_download"></a> |
|
|
|
<a class="nocopy" ng-if="audio._ == 'document'" ng-click="download()" my-i18n="message_attach_document_download"></a> |
|
|
|
<a ng-click="togglePlay()" my-i18n="message_attach_audio_play"></a> |
|
|
|
<a class="nocopy" ng-click="togglePlay()" my-i18n="message_attach_audio_play"></a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="audio_player_progress_wrap" ng-if="audio.progress.enabled || audio.downloaded" ng-switch="audio.progress.enabled"> |
|
|
|
<div class="audio_player_progress_wrap" ng-if="audio.progress.enabled || audio.downloaded" ng-switch="audio.progress.enabled"> |
|
|
|
<div ng-switch-when="true" class="clearfix im_message_cancelable_progress_wrap"> |
|
|
|
<div ng-switch-when="true" class="clearfix im_message_cancelable_progress_wrap"> |
|
|
|
<a class="im_message_media_progress_cancel pull-right" ng-click="audio.progress.cancel()" my-i18n="modal_cancel"></a> |
|
|
|
<a class="im_message_media_progress_cancel pull-right nocopy" ng-click="audio.progress.cancel()" my-i18n="modal_cancel"></a> |
|
|
|
<div class="im_message_download_progress_wrap"> |
|
|
|
<div class="im_message_download_progress_wrap"> |
|
|
|
<div class="progress tg_down_progress"> |
|
|
|
<div class="progress tg_down_progress"> |
|
|
|
<div class="progress-bar progress-bar-success" ng-style="{width: audio.progress.percent + '%'}"></div> |
|
|
|
<div class="progress-bar progress-bar-success" ng-style="{width: audio.progress.percent + '%'}"></div> |
|
|
|