aboutsummaryrefslogtreecommitdiff
path: root/interfaces/http/web/views/index.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/index.erb
parentd40c681d2f9d56e01cd5f1ff3e586b79ea4397f9 (diff)
downloadcomb-27067b4d8e5e854f16e3bdb08c2f63f4250632a8.tar.gz
Add 'url' field to config table
Diffstat (limited to 'interfaces/http/web/views/index.erb')
-rw-r--r--interfaces/http/web/views/index.erb9
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 %>