Add a hyperlink back to thread
This commit is contained in:
parent
f8582fbef4
commit
e62c29462f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
<% } =%>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue