Igor Zhukov
10 years ago
5 changed files with 173 additions and 64 deletions
@ -1,21 +1,47 @@ |
|||||||
<div class="im_message_document clearfix" ng-class="{im_message_document_thumbed: !!webpage.photo}" ng-if="webpage._ == 'webPage'"> |
<div class="im_message_webpage_wrap clearfix" ng-switch="webpage.type"> |
||||||
|
<div ng-switch-when="photo" class="im_message_webpage_photo"> |
||||||
<a ng-if="::webpage.photo" ng-click="docOpen()"> |
<div class="im_message_webpage_site" ng-bind="webpage.site_name || webpage.display_url"></div> |
||||||
<div class="im_message_document_thumb_wrap"> |
<div class="im_message_webpage_title"> |
||||||
|
<a href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
|
</div> |
||||||
|
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
|
<a class="im_message_photo_thumb" ng-click="openPhoto(webpage.photo.id, {w: webpage.id})" ng-style="::{width: webpage.photo.thumb.width + 'px'}" ng-mouseover="preloadPhoto(webpage.photo.id)"> |
||||||
<img |
<img |
||||||
class="im_message_document_thumb" |
class="im_message_photo_thumb" |
||||||
my-load-thumb |
my-load-thumb |
||||||
thumb="webpage.photo.thumb" |
thumb="webpage.photo.thumb" |
||||||
/> |
/> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<div ng-switch-when="video" class="im_message_webpage_video"> |
||||||
|
<div class="im_message_webpage_site" ng-bind="webpage.site_name || webpage.display_url"></div> |
||||||
|
<div class="im_message_webpage_title"> |
||||||
|
<a href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
</div> |
</div> |
||||||
</a> |
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
|
<a class="im_message_video_thumb" ng-href="{{webpage.url}}" target="_blank" ng-style="::{width: video.thumb.width + 'px'}"> |
||||||
|
<span ng-if="webpage.duration > 0" class="im_message_video_duration" ng-bind="::webpage.duration | duration"></span> |
||||||
|
<i class="icon icon-videoplay"></i> |
||||||
|
<img |
||||||
|
class="im_message_video_thumb" |
||||||
|
my-load-thumb |
||||||
|
thumb="webpage.photo.thumb" |
||||||
|
/> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
<div class="im_message_document_info"> |
<div ng-switch-default class="im_message_webpage_article"> |
||||||
<div class="im_message_document_name_wrap"> |
<div ng-if="webpage.photo" class="im_message_webpage_article_photo pull-right"> |
||||||
<a href="" ng-click="docOpen()" class="im_message_document_name" ng-bind="webpage.title || webpage.author"></a> |
<img |
||||||
<span class="im_message_document_size" ng-bind="webpage.display_url"></span> |
class="im_message_article_thumb" |
||||||
|
my-load-thumb |
||||||
|
thumb="webpage.photo.thumb" |
||||||
|
/> |
||||||
|
</div> |
||||||
|
<div class="im_message_webpage_site" ng-bind="webpage.site_name"></div> |
||||||
|
<div class="im_message_webpage_title"> |
||||||
|
<a href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a> |
||||||
</div> |
</div> |
||||||
<div class="im_message_website_description" ng-bind="webpage.description"></div> |
<div ng-if="webpage.description.length" class="im_message_webpage_description" ng-bind-html="webpage.rDescription"></div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
Loading…
Reference in new issue