summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-21 00:17:50 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-21 00:17:50 +0000
commit92e5781212eba09bc847fddb92e86e873338fe67 (patch)
tree9b97af06096dfea21907bc48c36faf437a2320fb /doc
parent67b782a346171242e94c6621d14f1cd9bd671909 (diff)
* Elegant patch from Ethan to clean up the display of page names in the
dropdown when creating a new page.
Diffstat (limited to 'doc')
-rw-r--r--doc/patchqueue/friendly_pagelocs.mdwn27
1 files changed, 0 insertions, 27 deletions
diff --git a/doc/patchqueue/friendly_pagelocs.mdwn b/doc/patchqueue/friendly_pagelocs.mdwn
deleted file mode 100644
index 2fbfbf51d..000000000
--- a/doc/patchqueue/friendly_pagelocs.mdwn
+++ /dev/null
@@ -1,27 +0,0 @@
-When you create a new page, the choices for page location have underscores and
-numbers in them to represent spaces and "special characters". This patch lets
-ikiwiki display more user-friendly names. --Ethan
-
-<pre>
-diff -urX ignorepats ikiwiki/IkiWiki/CGI.pm ikidev/IkiWiki/CGI.pm
---- ikiwiki/IkiWiki/CGI.pm 2007-02-14 18:17:12.000000000 -0800
-+++ ikidev/IkiWiki/CGI.pm 2007-02-20 15:54:13.761158000 -0800
-@@ -450,6 +450,8 @@
- map { check_canedit($_, $q, $session) } @page_locs;
- }
-
-+ # don't escape (will be done by formbuilder)
-+ my %loc_options = map { $_ => pagetitle($_, 1) } @editable_locs;
- my @page_types;
- if (exists $hooks{htmlize}) {
- @page_types=keys %{$hooks{htmlize}};
-@@ -457,7 +459,7 @@
-
- $form->tmpl_param("page_select", 1);
- $form->field(name => "page", type => 'select',
-- options => \@editable_locs, value => $best_loc);
-+ options => \%loc_options, value => $best_loc);
- $form->field(name => "type", type => 'select',
- options => \@page_types);
- $form->title(sprintf(gettext("creating %s"), pagetitle($page)));
-</pre> \ No newline at end of file