diaspora/app/views/templates/reshare.jst
2012-01-23 23:35:31 +01:00

53 lines
1.5 KiB
Text

<div class="reshare">
<% if(root) { %>
<a href="/people/<%= root.author.guid %>">
<img src="<%= root.author.avatar.small %>" class="avatar" data-person-id="<%= root.author.id %>"/>
</a>
<div class="content">
<div class="post_initial_info">
<span class="from">
<a href="/people/<%= root.author.guid %>">
<%= root.author.name %>
</a>
</span>
<span class="details">
-
<a href="/posts/<%= root.id %>">
<time class="timeago" datetime="<%= root.created_at %>"/>
</a>
</span>
<% if(root.reshares_count) { %>
-
<%= Diaspora.I18n.t("stream.reshares", {count : root.reshares_count}) %>
<% } %>
</div>
<!-- duplicate from statusmessage partial -->
<% if(root.photos && root.photos.length > 0) { %>
<div class="photo_attachments">
<img src="<%= root.photos[0].sizes.large %>" class="stream-photo big_stream_photo">
<% for(photo in root.photos) {
if(photo == 0){ continue; }
if(photo == 8){ break; } %>
<img src="<%= root.photos[photo].sizes.small %>" class="stream-photo thumb_small">
<% } %>
<% } %>
<div class="collapsible">
<%= text %>
<%= o_embed_html %>
</div">
<!-- end duplication -->
</div>
<% } else { %>
<p>
<%= Diaspora.I18n.t('stream.original_post_deleted') %>
</p>
<% } %>
</div>