aboutsummaryrefslogtreecommitdiff
path: root/interfaces/http/web/views/index.erb
blob: 657859b5b27b7bfe84391187f5bc45808153ef1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<% for post in @posts %>
	<h2><a href="<%= post.url %>"><%= post.title %></a></h2>
	<div class="meta">
		<p>
			by
			<%= post.user.name || post.user.username %>
			on
			<%= post.created_at.strftime('%e %b %Y') %>
		</p>
	</div>
	<div class="content">
		<%= post.body %>
	</div>
<% end %>