ensl.org/app/views/shoutmsgs/_shoutmsg.html.erb
Luke Barratt faa895b3f0 Bump to Rails 3.2.18
Reduce aggressive topic reply/view count caching
Improve shout box spacing
Pass broken tests
2014-05-10 02:26:18 +01:00

16 lines
460 B
Text

<div class="shoutmsg">
<div class="user">
<span class="username">
<% if shoutmsg.can_destroy? cuser %>
<%= link_to icon('times'), shoutmsg, method: :delete %>
<% end %>
<%= 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">
<%= shoutmsg.text %>
</div>
</div>