Improved activity stream.

This commit is contained in:
Martin Edenhofer 2014-07-27 22:26:25 +02:00
parent dc2214646e
commit fefb728954

View file

@ -1,10 +1,10 @@
<h2 class="can-move"><%- @T( @head ) %></h2>
<% for item in @items: %>
<div class="activity-entry horizontal">
<div class="avatar" style="background-image: url(<%- item.created_by.image %>)"></div>
<a href="<%- item.created_by.uiUrl() %>"><div class="avatar" style="background-image: url(<%- item.created_by.image %>)"></div></a>
<div class="activity-body flex horizontal">
<div class="activity-message flex">
<span class="user-popover" data-id="<%= item.created_by_id %>"><%= item.created_by.displayName() %></span> <%- @T( item.type ) %> <a href="<%- item.link %>"><%= item.object_name %><% if item.title: %> (<%= item.title %>)<% end %></a>
<a href="<%- item.link %>"><%= item.created_by.displayName() %> <%- @T( item.type ) %> <%- @T( item.object_name ) %><% if item.title: %> (<%= item.title %>)<% end %></a>
<div class="activity-time humanTimeFromNow" data-time="<%- item.created_at %>">?</div>
</div>
<div class="activity-icon">