| Idea now included in dokuwiki development version, with fancy icons too refer dokuwiki wiki, recent changes page |
|---|
I find the recent changes page to be the most common page I check on the Wiki's I frequent. Often, especially on complex pages or pages I am not familiar with, I want to see the revision history or the most recent changes to the page. Rather than go through several mouse clicks to get to these pages I figured why aren't there links on the recent changes page to take you straight to that information.
/** * display recent changes * * @author Andreas Gohr <andi@splitbrain.org> */ function html_recent(){ global $conf; $recents = getRecents(0,true); print parsedLocale('recent'); print '<ul>'; foreach(array_keys($recents) as $id){ $date = date($conf['dformat'],$recents[$id]['date']); //--CS additional code to generate recent changes link $revisions = getRevisions($id); $rev = $revisions[0]; //--CS end print '<li>'; //--CS replacement code to offer links to revision history and recent changes // print $date.' '.html_wikilink($id,$id); print $date. ' <a href="'.wl($id,"do=revisions").'">[revisions]</a>'. ' <a href="'.wl($id,"rev=$rev&do=diff").'">[changes]</a>'. ' '.html_wikilink($id,$id); //--CS end print ' '.htmlspecialchars($recents[$id]['sum']); print ' <span class="user">('; print $recents[$id]['ip']; if($recents[$id]['user']) print ' '.$recents[$id]['user']; print ')</span>'; print '</li>'; } print '</ul>'; }