Joey Hess
c150590e27
factor out glob2re
2008-07-02 18:22:49 -04:00
Joey Hess
84e6c4fa66
add mimetype checking
2008-07-02 18:22:49 -04:00
Joey Hess
ba707cdcd9
add user and ip support to attachment pagespecs
2008-07-02 16:33:35 -04:00
Joey Hess
edfbd7e1aa
toggle: Add javascript to top of page, not to end. This avoids flicker since closed toggles will not be displayed as the page is loading.
2008-07-02 16:14:18 -04:00
Joey Hess
1289beb53b
xhtml fixes
2008-07-02 16:08:48 -04:00
Joey Hess
895faed642
toggle: Add support for toggles that are open by default.
...
Also fix to work in preview mode.
2008-07-02 16:02:01 -04:00
Joey Hess
d593533af5
attachments interface visibility toggling
2008-07-02 15:42:32 -04:00
Joey Hess
e998235240
export javascript, and support default-open toggles
2008-07-02 15:33:52 -04:00
Joey Hess
ed25c2abf2
fixes
2008-07-01 20:35:54 -04:00
Joey Hess
883da338a4
some fit and finish fixes
2008-07-01 19:05:15 -04:00
Joey Hess
0abaf5aaae
only show one sig fig
2008-07-01 18:41:30 -04:00
Joey Hess
e8a13c32ba
display human sizes
2008-07-01 18:40:42 -04:00
Joey Hess
8441d31535
add both kinds of links
2008-07-01 18:08:31 -04:00
Joey Hess
c1e9e121b7
basic attachment list
2008-07-01 17:19:38 -04:00
Joey Hess
14cb2b0869
save attachments when page is saved too
...
A user might specify an attachment, but not click the upload button,
and just save the whole page instead.
2008-07-01 16:13:47 -04:00
Joey Hess
1405006fbf
check attachments in and refresh
2008-07-01 15:35:01 -04:00
Joey Hess
e87c3ae6df
add allowed attachments field to admin prefs
2008-07-01 14:02:30 -04:00
Joey Hess
00962f589a
minor optimisation
2008-07-01 13:51:22 -04:00
Joey Hess
d7ca2f8f9b
fix expensive move code path
2008-07-01 13:48:07 -04:00
Joey Hess
7cd40ea4eb
better approach for cgi upload disabling
...
Make it a config setting, this way subtle load order issues don't come into
play. (As much?)
2008-07-01 13:43:32 -04:00
Joey Hess
5aee8d937d
bugfixes
2008-07-01 13:39:02 -04:00
Joey Hess
a78a981792
attachment location
...
Put the attachment in a subdir of the page it's attached to,
unless that page is an "index" page.
2008-07-01 13:31:09 -04:00
Joey Hess
b4296a4943
simplification
2008-07-01 13:31:03 -04:00
Joey Hess
de6ed410bc
reorder
...
canedit should fail first as it's a less expensive and harder to pass test
2008-07-01 13:22:11 -04:00
Joey Hess
dbf23748dd
call check_canedit
...
Needed to prevent uploads of locked pages as attachments.
2008-07-01 13:20:42 -04:00
Joey Hess
cec45b69da
bugfix; support pagetype of "0"
2008-07-01 00:43:19 -04:00
Joey Hess
4fa115fdb5
copy the attachment into srcdir
2008-07-01 00:42:42 -04:00
Joey Hess
0f8ea7ecca
break out fast_file_copy
2008-07-01 00:42:23 -04:00
Joey Hess
49514f39f6
fix some messages
2008-06-30 23:32:08 -04:00
Joey Hess
b01ee9b3b3
add an ispage limit
2008-06-30 23:17:01 -04:00
Joey Hess
622033f5d6
minor improvements
2008-06-30 23:04:37 -04:00
Joey Hess
0a37c45f32
basic attachment plugin, unfinished
...
Currently includes UI, and a few tests of the attachment, as well as the
framework to extend pagespecs to test attachments. Does not actually save
the file yet.
2008-06-30 22:58:33 -04:00
Joey Hess
dbab5e9b85
disable cgi uploads earlier
...
This allows plugins that want to enable uploads to do so by changing the
value of $CGI::DISABLE_UPLOADS at some point before the cgi hook is run.
2008-06-30 21:13:41 -04:00
Joey Hess
e1d9747be1
remove unused editpage title
...
The title was set to editpage, but then always changed.
And some code tested for this. Remove this dead code.
2008-06-30 20:33:39 -04:00
Joey Hess
8e43bc0e0f
Configure CGI.pm to disable file uploads by default.
2008-06-30 20:01:10 -04:00
Joey Hess
b66f9a1981
call format hooks when generating page previews
...
* toc: Revert change in 2.45 that made it run at sanitize time. This breaks
use of toc in a sidebar.
* Call format hooks when generating page previews, thus fixing toc display
there, as well as fixing inlins to again display in page previews, since
it's started using format hooks. This also allows several other things,
like embed, that use format hooks, to work during page preview time.
* Format hooks should not rely on getting an entire html document, as they
will only get the body during page preview.
* toggle: Deal with preview mode when adding javascript.
2008-06-28 23:08:24 -04:00
Joey Hess
00503f25cd
smiley: Generate links relative to the destpage. (Fixes a reversion from 2.41.)
2008-06-28 16:58:43 -04:00
Joey Hess
17a09ef88e
pagesources might not be populated
2008-06-24 20:47:15 -04:00
Joey Hess
7fbbcc1615
only convert urls if the module is installed
2008-06-24 20:38:41 -04:00
Joey Hess
a4d693f659
formatting
2008-06-24 20:35:21 -04:00
Joey Hess
532d4b0d5f
rename to txt
2008-06-24 20:33:41 -04:00
Joey Hess
3f6d3f3be8
initial version
2008-06-24 20:33:03 -04:00
Bernd Zeimetz
4a9567595a
Disable handling of "bare" links by the creole plugin.
...
This change needs libtext-wikicreole-perl (>= 0.05-2).
Also removing custom link function, there's no need for it -
if it is not defined, the unmodified markup will be returned.
2008-06-24 16:52:23 -04:00
Bernd Zeimetz
b16c43a440
`template` option for aggregate.pm.
...
Allows to specify the template file which is used to
create the html pages.
2008-06-21 16:23:39 -04:00
Joey Hess
1b6b4da3a3
avoid creole parsing wikilinks
...
ikiwiki already does, and escaped links should not be processed by creole
after ikiwiki de-escapes them
2008-06-19 19:54:46 -04:00
Joey Hess
98095ccac4
creole: New plugin from Bernd Zeimetz. Closes : #486930
2008-06-19 19:11:18 -04:00
Joey Hess
bd7edfd9ca
textile: The Text::Textile perl module has some regexps that fail if input is flagged as utf-8, but contains invalid characters such as 0x92. To prevent it from crashing, re-encode the content before calling it, which will ensure that it's really utf-8.
2008-06-16 15:43:37 -04:00
Joey Hess
4da54999de
meta: Store "description" in pagestate for use by other plugins.
...
map: Support show=description.
2008-06-15 19:08:50 -04:00
Joey Hess
ebb2b9cbda
bugfixes for show=title
...
Can't sort by titles; the tree building logic requires that the list be
sorted by page name.
Setting linktext => $page is not the same as omitting it entirely. So some
contortions to only set linktext when the page name is not being shown.
2008-06-15 19:08:24 -04:00
Joey Hess
ce029bfe04
check that parent hash exists, to avoid creating it
2008-06-15 18:10:47 -04:00