diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep
index 97a944e..ccf9468 100644
--- a/templates/thread/by_page.html.ep
+++ b/templates/thread/by_page.html.ep
@@ -33,9 +33,9 @@
<% } =%>
-
-<% if ($last_page && $last_page != 1) { =%>
-
+ <% if ($last_page && $last_page != 1) { =%>
+
<% } =%>
+