aboutsummaryrefslogtreecommitdiff
path: root/interfaces/http/web/views/post.erb
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-03-03 14:36:03 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-03-03 14:36:03 +0100
commit27067b4d8e5e854f16e3bdb08c2f63f4250632a8 (patch)
tree3221635a1fda3604da02548debfab19b96ddd50c /interfaces/http/web/views/post.erb
parentd40c681d2f9d56e01cd5f1ff3e586b79ea4397f9 (diff)
downloadcomb-27067b4d8e5e854f16e3bdb08c2f63f4250632a8.tar.gz
Add 'url' field to config table
Diffstat (limited to 'interfaces/http/web/views/post.erb')
-rw-r--r--interfaces/http/web/views/post.erb9
1 files changed, 7 insertions, 2 deletions
diff --git a/interfaces/http/web/views/post.erb b/interfaces/http/web/views/post.erb
index 1fe689a..21794fb 100644
--- a/interfaces/http/web/views/post.erb
+++ b/interfaces/http/web/views/post.erb
@@ -1,7 +1,12 @@
<h1><%= @post.title %></h1>
<div class="meta">
- <p><%= @post.created_at %></p>
+ <p>
+ by
+ <%= @post.user.name || @post.user.username %>
+ on
+ <%= @post.created_at.strftime('%e %b %Y') %>
+ </p>
</div>
<div class="content">
<%= @post.body %>
-</div>
+</div> \ No newline at end of file