Newer
Older
dmpopidor / app / views / notes / _show.html.erb
@Gavin Morrice Gavin Morrice on 28 Aug 2018 349 bytes Issue 532 (#1847)
<%# locals: { note } %>
<% if !note.nil? %>
    <% user = User.find(note.user_id) %>
    <ul class="list-unstyled">
        <li><%= sanitize note.text %></li>
        <li>
            <span class="label label-info">
                <%= "#{user.name} at #{l(note.updated_at, format: :short)}" %>
            </span>
        </li>
    </ul>
<% end %>