]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/rename.pm
img: Pass the align parameter through to the generated img tag.
[git.ikiwiki.info.git] / IkiWiki / Plugin / rename.pm
index fa03588438fd4469630fb3660338282fcc73ad00..0b6e74705b29e86330395344140d7b6390db7cf2 100644 (file)
@@ -116,14 +116,16 @@ sub rename_form ($$$) {
                # insert the standard extensions
                my @page_types;
                if (exists $IkiWiki::hooks{htmlize}) {
-                       @page_types=grep { !/^_/ }
-                               keys %{$IkiWiki::hooks{htmlize}};
+                       foreach my $key (grep { !/^_/ } keys %{$IkiWiki::hooks{htmlize}}) {
+                               push @page_types, [$key, $IkiWiki::hooks{htmlize}{$key}{longname} || $key];
+                       }
                }
+               @page_types=sort @page_types;
        
                # make sure the current extension is in the list
                my ($ext) = $pagesources{$page}=~/\.([^.]+)$/;
                if (! $IkiWiki::hooks{htmlize}{$ext}) {
-                       unshift(@page_types, $ext);
+                       unshift(@page_types, [$ext, $ext]);
                }
        
                $f->field(name => "type", type => 'select',
@@ -417,6 +419,7 @@ sub linklist {
                {
                        page => htmllink($dest, $dest, $_,
                                        noimageinline => 1,
+                                       linktext => pagetitle($_),
                                )
                }
        } @{$list}]