Add a hyperlink back to thread

This commit is contained in:
swagg boi 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 {}
.thread, .remark {
border-style: dotted;
.field-with-error {
border-style: solid;
border-color: red;
}
.thread, .remark, .field-with-error {
border-style: dotted;
border-collapse: collapse;
}

View file

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

View file

@ -3,7 +3,9 @@
<h2><%= title %></h2>
<div class="threads">
<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>
<h4 class="date"><%= %$thread{'date'} %></h4>
<h5 class="author"><%= %$thread{'author'} %></h5>