This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/discussions/_discussion.rhtml

9 lines
384 B
Plaintext

<li class="discussion" id="discussion-<%= discussion.id %>"<% if defined? li_number -%> value="<%= li_number -%>"<% end -%>>
<div class="author">
<cite><%= discussion.page.created_by.title -%></cite>
<p>Posted <%= distance_of_time_in_words discussion.created_at, Time.now rescue 'xxx' %> ago.</p>
</div>
<div class="content">
<%= h(discussion.text) %>
</div>
</li>