]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Change the RecentChanges page to show the path of changed pages.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 14 Jan 2007 04:30:53 +0000 (04:30 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 14 Jan 2007 04:30:53 +0000 (04:30 +0000)
IkiWiki/CGI.pm
debian/changelog
doc/index/discussion.mdwn
doc/patchqueue/full_paths_in_recentchanges.mdwn [deleted file]

index 71a3299a47ce4807947c227e8242df0cb9610bc7..96b9dab6193f94cb07cc4f420288b33e93134640 100644 (file)
@@ -92,7 +92,7 @@ sub cgi_recentchanges ($) { #{{{
                delete @{$change->{pages}}[10 .. @{$change->{pages}}] if $is_excess;
                $change->{pages} = [
                        map {
-                               $_->{link} = htmllink("", "", $_->{page}, 1);
+                               $_->{link} = htmllink("", "", $_->{page}, 1, 0, pagetitle($_->{page}));
                                $_;
                        } @{$change->{pages}}
                ];
index 64614e7272286f9b87cad10a8fd091fdd511d6fd..3ba2d021a6d697ac6fec62beaad90b95c2970fba 100644 (file)
@@ -16,8 +16,9 @@ ikiwiki (1.39) UNRELEASED; urgency=low
     a templatedir. Based on work by JeremyReed.
   * In the aggregator, check for and deal with post filenames that are
     longer than the maximum file length.
+  * Change the RecentChanges page to show the path of changed pages.
 
- -- Joey Hess <joeyh@debian.org>  Sat, 13 Jan 2007 23:03:48 -0500
+ -- Joey Hess <joeyh@debian.org>  Sat, 13 Jan 2007 23:30:20 -0500
 
 ikiwiki (1.38) unstable; urgency=low
 
index 0336e8342f1ede0af3fbd50da9f27eea9126773b..4374130fae46c949e087575c75b886f8533a601a 100644 (file)
@@ -197,21 +197,7 @@ The RecentChanges only shows the final file name for the recently changes file,
 for example "discussion". It would be more useful to see "index/discussion"
 or the path to the sub-page. I think this is handled by the htmllink() routine.
 
->> IMHO it's a good idea and I like it. Often I can see changes in
->> any discussion page, but I don't know without clicking the link
->> what discussion was changed.
-
->> However, I can see one problem here. You can commit via command line
->> changes in many pages. It will be displayed ugly then, because probably
->> a width of the RecentChanges page will be greater then a width of
->> user's browser. I hate these pages. So I propose to display a list of
->> changed pages in a column, not in a row. --Pawel
-
->>> Well, it's a simple [[patch|patchqueue/full_paths_in_recentchanges]].
->>> For a limited time I have that patch running on this wiki. Undecided if
->>> I like it or not; the width is not really a problem due to the design
->>> of the recentchanges page, but all those paths do clutter up the page
->>> somewhat. Comments? --[[Joey]]
+> Went ahead and did this, IMHO the display is ok as-is. --[[Joey]]
 
 ----
 
diff --git a/doc/patchqueue/full_paths_in_recentchanges.mdwn b/doc/patchqueue/full_paths_in_recentchanges.mdwn
deleted file mode 100644 (file)
index a42a272..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-For my own refrence --[[Joey]]
-
-       Index: CGI.pm
-       ===================================================================
-       --- CGI.pm      (revision 2225)
-       +++ CGI.pm      (working copy)
-       @@ -92,7 +92,7 @@
-                       delete @{$change->{pages}}[10 .. @{$change->{pages}}] if $is_excess;
-                       $change->{pages} = [
-                               map {
-       -                               $_->{link} = htmllink("", "", $_->{page}, 1);
-       +                               $_->{link} = htmllink("", "", $_->{page}, 1, 0, pagetitle($_->{page}));
-                                       $_;
-                               } @{$change->{pages}}
-                       ];