Add a hyperlink back to thread

This commit is contained in:
swaggboi 2022-08-24 22:15:52 -04:00
parent f8582fbef4
commit e62c29462f
3 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,9 @@
.field-with-error {} .field-with-error {
border-style: solid;
.thread, .remark { border-color: red;
border-style: dotted; }
.thread, .remark, .field-with-error {
border-style: dotted;
border-collapse: collapse;
} }

View File

@ -25,9 +25,8 @@
<% } =%> <% } =%>
</div> </div>
<nav> <nav>
<%= link_to Remark => thread_id => {thread_id => $thread->{'id'}} %>
<% if ($last_page && $last_page != 1) { =%> <% if ($last_page && $last_page != 1) { =%>
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %> <%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
<% } %> <% } =%>
</nav> </nav>
<% } =%> <% } =%>

View File

@ -3,7 +3,9 @@
<h2><%= title %></h2> <h2><%= title %></h2>
<div class="threads"> <div class="threads">
<article class="thread"> <article class="thread">
<span class="id">#<%= %$thread{'id'} %></span> <span class="id">
<%= link_to "#$thread->{'id'}", remark_page => {thread_id => $thread->{'id'}} %>
</span>
<h3 class="title"><%= %$thread{'title'} %></h3> <h3 class="title"><%= %$thread{'title'} %></h3>
<h4 class="date"><%= %$thread{'date'} %></h4> <h4 class="date"><%= %$thread{'date'} %></h4>
<h5 class="author"><%= %$thread{'author'} %></h5> <h5 class="author"><%= %$thread{'author'} %></h5>