Skip to content
Snippets Groups Projects

Media captions

Merged Mary Pelletier requested to merge media-captions into master
All threads resolved!
Files
6
@@ -7,19 +7,31 @@
<div class="status-gallery__wrapper">
{{#each @attachments as |attachment|}}
<div class="status-gallery__slide" data-test-selector="attachment-gallery-slide">
<MediaAttachment
@isPreview={{false}}
@attachment={{attachment}}
@alt={{attachment.description}}
@showVideoControls={{true}}
class={{concat "status-gallery__slide__" attachment.type}}
data-test-gallery-item={{attachment.id}}
/>
{{#if (eq attachment.type "image")}}
<div class="status-gallery__slide__preloader"></div>
{{/if}}
<div class="status-gallery__background">
<div class="status-gallery__contents-wrapper">
<MediaAttachment
@isPreview={{false}}
@attachment={{attachment}}
@alt={{attachment.description}}
@showVideoControls={{true}}
class={{concat "status-gallery__slide__media--with-caption status-gallery__slide__" attachment.type}}
data-test-gallery-item={{attachment.id}}
/>
{{#if (eq attachment.type "image")}}
<div class="status-gallery__slide__preloader"></div>
{{/if}}
<div class="status-gallery__slide__caption">
<p>image caption will go here</p>
</div>
{{#if (not (or subject.isDirectMessage (eq subjectType "chat-message")))}}
<FeedItem::Actions
@class="gallery-modal__status-actions status-actions--gallery-modal"
@status={{subject}}
/>
{{/if}}
</div>
</div>
</div>
{{/each}}
</div>
</div>
Loading