From 222d9e8a741204fba454d41747d1f6b9eab4ad28 Mon Sep 17 00:00:00 2001 From: swag Date: Wed, 6 Apr 2022 22:44:05 -0400 Subject: [PATCH] Impelement hyperlinking of individual message IDs --- assets/css/swagg.css | 5 +++++ templates/index.html.ep | 4 +++- templates/message_id.html.ep | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/css/swagg.css b/assets/css/swagg.css index d28660e..91f2118 100644 --- a/assets/css/swagg.css +++ b/assets/css/swagg.css @@ -114,6 +114,11 @@ article h3 { margin-bottom: 0em; } +article .message_id.field { + float: right; + padding: 1em 0 0 0; +} + .captcha { display: grid; grid-template-columns: 3ch auto; diff --git a/templates/index.html.ep b/templates/index.html.ep index b5edf85..01402ed 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -4,6 +4,9 @@
<% for my $post (@$view_posts) { =%>
+ + <%= link_to "#@$post[4]" => "/message/@$post[4]" %> +

<%= @$post[0] %>

<%= @$post[2] %>

@@ -16,7 +19,6 @@ <% } =%>

-
<% } =%>
diff --git a/templates/message_id.html.ep b/templates/message_id.html.ep index 50114d7..6ceffe7 100644 --- a/templates/message_id.html.ep +++ b/templates/message_id.html.ep @@ -3,6 +3,9 @@

Messages from the World Wide Web

+ + <%= link_to "#@$view_post[4]" => "/message/@$view_post[4]" %> +

<%= @$view_post[0] %>

<%= @$view_post[2] %>

@@ -15,6 +18,5 @@ <% } =%>

-