Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #2 (closed improvement: fixed)

Opened 10 years ago

Last modified 10 years ago

list of older commented pictures

Reported by: martin Owned by:
Priority: minor Milestone:
Component: view Version: trunk
Keywords: comments, list Cc: sebastian@silef.de, martin@silef.de

Description

In the home section only the last four comments are listed. It would be nice though to have a link to older comments just for the case you want to have a look "the cool picture I saw last week when I logged on".

Attachments

older_comments.patch (2.7 KB) - added by martin 10 years ago.
patch for displaying older comments (first try)

Change History

comment:1 Changed 10 years ago by martin

  • Component set to View

comment:2 follow-up: ↓ 3 Changed 10 years ago by sebastian

To implement this function the basic comment list is written in controllers/home_controller.php which can be used to add an index action in the controllers/comment_controller.php.

The view of index action has to be added to views/comments.

For pagination please have a look at http://book.cakephp.org/view/164/Pagination

comment:3 in reply to: ↑ 2 Changed 10 years ago by sebastian

Replying to sebastian:

Typo in comment controller: controllers/comments_controller.php

To implement this function the basic comment list is written in controllers/home_controller.php which can be used to add an index action in the controllers/comment_controller.php.

The view of index action has to be added to views/comments.

For pagination please have a look at http://book.cakephp.org/view/164/Pagination>

comment:4 Changed 10 years ago by martin

  • Cc sebastian@silef.de, martin@silef.de added

Changed 10 years ago by martin

patch for displaying older comments (first try)

comment:5 Changed 10 years ago by martin

  • Version set to trunk

I finally took some time and gave it a try. It does work as it should, however it lists comments of *all* images, even the ones you do not not have access rights. So there has to be done some acl filtering. I tried to do the same as in http://trac.phtagr.org/browser/trunk/controllers/home_controller.php, but wasn't successful.

Patch attached.

comment:6 Changed 10 years ago by martin

  • Status changed from new to closed
  • Resolution set to fixed

Got it working now. Committing to trunk. 1st Ticket fixed!

Note: See TracTickets for help on using tickets.