diff options
Diffstat (limited to 'interfaces/http/web/views/index.erb')
-rw-r--r-- | interfaces/http/web/views/index.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/interfaces/http/web/views/index.erb b/interfaces/http/web/views/index.erb index ee96a6c..657859b 100644 --- a/interfaces/http/web/views/index.erb +++ b/interfaces/http/web/views/index.erb @@ -1,7 +1,12 @@ <% for post in @posts %> - <h2><%= post.title %></h2> + <h2><a href="<%= post.url %>"><%= post.title %></a></h2> <div class="meta"> - <p><%= post.created_at.strftime('%e %b %Y') %></p> + <p> + by + <%= post.user.name || post.user.username %> + on + <%= post.created_at.strftime('%e %b %Y') %> + </p> </div> <div class="content"> <%= post.body %> |