From 8a1abf5df22231d5ea63efe424f00016e50d49d6 Mon Sep 17 00:00:00 2001 From: francois Date: Thu, 27 Sep 2007 17:37:52 +0000 Subject: [PATCH] [wiki:sfSimpleForumPlugin] Added link to last page for multi-pages topics --- CHANGELOG | 1 + modules/sfSimpleForum/templates/_topic.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 461eca2..cbe8829 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ == Trunk == + * francois: Added link to last page for multi-pages topics * francois: Refactored actions class for easier custom templating * francois: Fixed topic feed * francois: Added a topic list (for all forums, for one user) and related feeds diff --git a/modules/sfSimpleForum/templates/_topic.php b/modules/sfSimpleForum/templates/_topic.php index 7a837c8..c551346 100644 --- a/modules/sfSimpleForum/templates/_topic.php +++ b/modules/sfSimpleForum/templates/_topic.php @@ -28,6 +28,14 @@ 'sfSimpleForum/topic?id='.$topic->getId().'&stripped_title='.$topic->getStrippedTitle(), array('class' => $topic->getIsNew() ? 'new' : '')) ?> + getNbPosts()) / sfConfig::get('app_sfSimpleForumPlugin_max_per_page', 10)) ?> + 1): ?> + getId().'&stripped_title='.$topic->getStrippedTitle().'&page='.$pages + ) ?> + + in getsfSimpleForumForum()->getName(),