From 27067b4d8e5e854f16e3bdb08c2f63f4250632a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstro=CC=88m?= Date: Wed, 3 Mar 2021 14:36:03 +0100 Subject: Add 'url' field to config table --- interfaces/http/web/views/index.erb | 9 +++++++-- interfaces/http/web/views/not_found.erb | 2 +- interfaces/http/web/views/post.erb | 9 +++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) (limited to 'interfaces/http/web/views') 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 %> -

<%= post.title %>

+

<%= post.title %>

-

<%= post.created_at.strftime('%e %b %Y') %>

+

+ by + <%= post.user.name || post.user.username %> + on + <%= post.created_at.strftime('%e %b %Y') %> +

<%= post.body %> diff --git a/interfaces/http/web/views/not_found.erb b/interfaces/http/web/views/not_found.erb index 7a4228b..71912b3 100644 --- a/interfaces/http/web/views/not_found.erb +++ b/interfaces/http/web/views/not_found.erb @@ -1,3 +1,3 @@ -

404 Not Found

+

404 Not Found

The page you are looking for does not exist.

Go to front page.

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 @@

<%= @post.title %>

-

<%= @post.created_at %>

+

+ by + <%= @post.user.name || @post.user.username %> + on + <%= @post.created_at.strftime('%e %b %Y') %> +

<%= @post.body %> -
+
\ No newline at end of file -- cgit v1.2.3