Browse Source

Fixed paginator in thread

Rafał Pitoń 10 years ago
parent
commit
bb193228ea

+ 7 - 0
misago/templates/misago/thread/pagination.html

@@ -36,4 +36,11 @@
       </a>
     </li>
   {% endif %}
+  {% if page.has_next and page.next_page_number < paginator.num_pages %}
+    <li>
+      <a href="{% pageurl link_name links_params paginator.num_pages %}" class="tooltip-top" title="{% trans "Go to last page" %}">
+        {% trans "Last" %}
+      </a>
+    </li>
+  {% endif %}
 </ul>

+ 1 - 1
misago/threads/views/generic/thread/view.py

@@ -81,7 +81,7 @@ class ThreadView(ViewBase):
         threadstracker.read_thread(request.user, thread, posts[-1])
 
         return self.render(request, {
-            'link_name': thread.get_url(),
+            'link_name': thread.get_url_name(),
             'links_params': {
                 'thread_id': thread.id, 'thread_slug': thread.slug
             },