ensl.org/app/views/shoutmsgs/_shoutmsg.html.erb
2014-05-10 13:55:40 +01:00

18 lines
515 B
Text

<div class="shoutmsg">
<div class="user">
<span class="username">
<%= namelink shoutmsg.user %>
</span>
<span class="time">
<%= shoutmsg.created_at ? shoutmsg.created_at.strftime("%H:%M") : Time.now.strftime("%H:%M") %>
</span>
</div>
<div class="message">
<div class="contents">
<%= shoutmsg.text %>
<% if shoutmsg.can_destroy? cuser %>
<%= link_to icon('times'), shoutmsg, method: :delete, class: 'destroy' %>
<% end %>
</div>
</div>
</div>