@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a "Last Edited" property to Wiki pages

Summary:
Ref T13164. See PHI797. The last edit is available in the page header, but it's not precise (just says "180 days ago") and a little weird (it's unusual for us to put that kind of information in the header).

Add a precise timestamp to the footer for now. I'd imagine re-examining this the next time Phriction gets some UI work and maybe trying to integrate timeline/transactions more cleanly (see also T1894).

Test Plan: Looked at a wiki page, then edited it. Saw precise "Last Edit" timestamp adjacent to "Last Author".

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13164

Differential Revision: https://secure.phabricator.com/D19560

+6 -1
+6 -1
src/applications/phriction/controller/PhrictionDocumentController.php
··· 254 254 PhrictionContent $content, 255 255 $slug) { 256 256 257 - $viewer = $this->getRequest()->getUser(); 257 + $viewer = $this->getViewer(); 258 + 258 259 $view = id(new PHUIPropertyListView()) 259 260 ->setUser($viewer) 260 261 ->setObject($document); ··· 262 263 $view->addProperty( 263 264 pht('Last Author'), 264 265 $viewer->renderHandle($content->getAuthorPHID())); 266 + 267 + $view->addProperty( 268 + pht('Last Edited'), 269 + phabricator_datetime($content->getDateCreated(), $viewer)); 265 270 266 271 return $view; 267 272 }