ensl.org/app/views/shoutmsgs/index.html.erb
2020-03-09 00:07:12 +02:00

20 lines
465 B
Text

<h1>Last 500 Shoutbox Messages</h1>
<table class="data">
<tr>
<th>Date</th>
<th>Time</th>
<th>User</th>
<th>Text</th>
</tr>
<% @shoutmsgs.each do |shoutmsg| %>
<tr class="<%= cycle('even', 'odd') %>">
<td><%= shoutmsg.created_at.strftime("%Y/%m/%d") %></td>
<td><%= shoutmsg.created_at.strftime("%H:%M") %></td>
<td><%= namelink shoutmsg.user %></td>
<td><%= shoutmsg.text %></td>
</tr>
<% end %>
</table>