Newer
Older
dmpopidor / app / views / notes / _show.html.erb
@Sam Rust Sam Rust on 28 May 2019 478 bytes replaced timestamps on notes with timeago
<%# locals: { note } %>
<% if !note.nil? %>
    <% user = User.find(note.user_id) %>
    <ul class="list-unstyled">
        <li>
          <div class="display-readonly-textarea-content">
            <%= sanitize note.text %>
          </div>
        </li>
        <li>
            <span class="label label-info">
                <%= "#{user.name} " %> <time class="timeago" datetime="<%= note.updated_at.iso8601 %>"></time>
            </span>
        </li>
    </ul>
<% end %>