Impelement hyperlinking of individual message IDs

This commit is contained in:
swagg boi 2022-04-06 22:44:05 -04:00
parent f2ca5cc1b6
commit 222d9e8a74
3 changed files with 11 additions and 2 deletions

View file

@ -114,6 +114,11 @@ article h3 {
margin-bottom: 0em; margin-bottom: 0em;
} }
article .message_id.field {
float: right;
padding: 1em 0 0 0;
}
.captcha { .captcha {
display: grid; display: grid;
grid-template-columns: 3ch auto; grid-template-columns: 3ch auto;

View file

@ -4,6 +4,9 @@
<div class="articles"> <div class="articles">
<% for my $post (@$view_posts) { =%> <% for my $post (@$view_posts) { =%>
<article> <article>
<span class="message_id field">
<%= link_to "#@$post[4]" => "/message/@$post[4]" %>
</span>
<h3><%= @$post[0] %></h3> <h3><%= @$post[0] %></h3>
<div class="message field"> <div class="message field">
<blockquote><p><%= @$post[2] %></p></blockquote> <blockquote><p><%= @$post[2] %></p></blockquote>
@ -16,7 +19,6 @@
<% } =%> <% } =%>
</p> </p>
</div> </div>
<span hidden>Message ID: <%= @$post[4] %></span>
</article> </article>
<% } =%> <% } =%>
</div> </div>

View file

@ -3,6 +3,9 @@
<h2>Messages from the World Wide Web</h2> <h2>Messages from the World Wide Web</h2>
<div class="articles"> <div class="articles">
<article> <article>
<span class="message_id field">
<%= link_to "#@$view_post[4]" => "/message/@$view_post[4]" %>
</span>
<h3><%= @$view_post[0] %></h3> <h3><%= @$view_post[0] %></h3>
<div class="message field"> <div class="message field">
<blockquote><p><%= @$view_post[2] %></p></blockquote> <blockquote><p><%= @$view_post[2] %></p></blockquote>
@ -15,6 +18,5 @@
<% } =%> <% } =%>
</p> </p>
</div> </div>
<span hidden>Message ID: <%= @$view_post[4] %></span>
</article> </article>
</div> </div>