| Commit message (Expand) | Author | Age |
* | improve detection of ajax request•••Firefox sent an accept header for application/xml, not application/json,
and also weakened the priority to 0.8. So that stuff is not to be trusted;
instead I found a better way: When an ajax upload is *not* being made,
the Upload Attachment button will be used, so enable ajax if an upload
is being made without that button having been used.
Also, testing with firefox revealed it refused to process a response that
was type application/json, and checking the demo page for the jquery file
upload plugin, it actually returns the json with type text/html. Ugh.
Followed suite.
Now tested with: chromium, chromium (w/o js), firefox, firefox (w/o js),
and w3m.
| Joey Hess | 2011-06-17 |
* | show ikiwiki error when attachment is rejected | Joey Hess | 2011-06-16 |
* | let thru HTTP_ACCEPT•••Needed for attachment to return json when requested.
I think some browsers send Accept: * , so I made sure to check that json
was explicitly listed as to be accepted, as well as having a high
priority.
| Joey Hess | 2011-06-15 |
* | bugfixes•••Make sure staged attachments sort as earlier, even if they're not really.
| Joey Hess | 2011-06-15 |
* | typo | Joey Hess | 2011-06-15 |
* | use jquery underlay | Joey Hess | 2011-06-15 |
* | updated jquery and made it its own underlay | Joey Hess | 2011-06-15 |
* | load attachment javascript into template the clean way | Joey Hess | 2011-06-15 |
* | WIP | Joey Hess | 2011-06-15 |
* | fix removal of staged attachments | Joey Hess | 2011-06-15 |
* | WIP | Joey Hess | 2011-06-15 |
* | implement renaming of held attachments•••This is somewhat suboptimal, it does not update links to the renamed file,
or show a result message.
| Joey Hess | 2011-06-14 |
* | remove trailing slash from attachment_holding_dir•••If it's passed a filename, it should return the filename inside the holding
dir. If passed a page, the directory sans slash. All code adds the slash.
| Joey Hess | 2011-06-14 |
* | more generic interface | Joey Hess | 2011-06-14 |
* | bugfixes | Joey Hess | 2011-06-14 |
* | bugfix for attachments of non-index pages | Joey Hess | 2011-06-14 |
* | fix removal of helf attachments•••Left out confirmation of removal for held attachments because
a) they're not in the wiki yet, so confirmation is a bit unnecessary
b) it would be hard
c) eases later integration of jquery file upload interface
Also changed where attachments of index are held (to match where they're
stored in the srcdir).
Note that the attachment formbuilder hook was made to run last, so that
the list of attachments is not generated before removal, in the fast path
w/o confirm.
| Joey Hess | 2011-06-14 |
* | fixed previewing of attachments from holding area | Joey Hess | 2011-06-14 |
* | fixed saving attachments on page save•••Also saved on preview, but previewing is a bit broken, does not see the
newly saved attachment yet.
| Joey Hess | 2011-06-14 |
* | attachment list includes new attachments in holding area•••Note that it's possible for an attachment in the holding area to be older
than an attachemnt in the wiki with the same name. I intentionally
show the one in the holding area in this (unlikely) case, since saving the
page will overwrite the wiki's file with the held attachment. It does not
seem worth the bother of doing something more intelligent, since in this
case two people have basically conflicted with one-another.. and both
attachment contents will be stored in revision control in case it needs to
be sorted out.
I had to remove the hyperlink for attachments in the holding area, since
they're not yet live on the web. This could be annoying/confusing. Added
a moseover notice instead.
| Joey Hess | 2011-06-14 |
* | untaint and linkpage the page name used in attachment holding directory | Joey Hess | 2011-06-14 |
* | store filename in holding dir in linkpage form•••Avoids any unpleasantness with .. or other special chars in the attachment
filename.
| Joey Hess | 2011-06-14 |
* | store attachments in holding area; commit to wiki on page save•••This makes uploading a lot of attachments somewhat faster, because
the user does not need to wait for a long website refresh after each
upload. Still probably somewhat slow, since ikiwiki has to run for each
upload.
More importantly, this opens the door for integration of things like
the jquery file upload interface, which allow drag-n-drop and multiple
file uploads to be queued and then ran.
It uses rcs_commit_staged, which leaves out tla and mercurual which lack
that, but since rename, remove, autoindex, etc also use that, I think it's
fine for attachments to also depend on it.
The attachment list is currently broken; it does not look in the holding
area yet, and its links to the attached files won't work since they're not
yet in the wiki. previewing is also currently broken.
Work sponsored by TOVA.
| Joey Hess | 2011-06-14 |
* | refactor | Joey Hess | 2011-06-14 |
* | better long filename detection method•••Let's just try to write and fall back to a short ugly filename on error.
| Joey Hess | 2011-06-10 |
* | aggregate: Improve checking for too long aggregated filenames.•••Two problems fixed:
1. Files are written with a .ikiwiki-new suffix, which has to be taken into
account.
2. Need to count length of bytes, not of unicode characters.
| Joey Hess | 2011-06-10 |
* | record email of new users in userinfo for userlist | Joey Hess | 2011-06-09 |
* | encode html | Joey Hess | 2011-06-09 |
* | userlist: New plugin, lets admins see a list of users and their info. | Joey Hess | 2011-06-09 |
* | search: Update search page when page.tmpl or searchquery.tmpl are locally mod... | Joey Hess | 2011-06-03 |
* | let's assume some web server will think OFF is a good idea.. | Joey Hess | 2011-06-03 |
* | Support the Hiawatha web server which sets HTTPS=off rather than not setting ... | Joey Hess | 2011-06-03 |
* | Merge remote-tracking branch 'intrigeri/po' | Joey Hess | 2011-06-03 |
|\ |
|
| * | po: set Locale::Po4a::Xml's ontagerror option to warn only. | intrigeri | 2011-05-26 |
* | | po: support language codes in the form of 'es_AR', and 'arn'.•••... additionally to the previously supported two-letters codes.
| intrigeri | 2011-05-26 |
* | | allow for a html formatted description in websetup•••w/o polluting setup file with the html
| Joey Hess | 2011-05-13 |
|/ |
|
* | Support YAML::XS by not passing decoded unicode to Load. Closes: #625713 | Joey Hess | 2011-05-12 |
* | openid: also use Net::INET6Glue if available | Joey Hess | 2011-05-09 |
* | aggregate, pinger: Use Net::INET6Glue if available to support making ipv6 con...•••Making outgoing ipv6 connections for openid auth is still broken; the glue
module does not seem to solve that, so I did not make openid use it.
| Joey Hess | 2011-05-09 |
* | HTML::Entities::encode_numeric is not exported | Joey Hess | 2011-04-30 |
* | tag: Avoid autocreating multiple tag pages that vary only in capitalization. ...•••Arguably, the real bug is in the interface to add_autofile, but since
that does take a filename, not a page name, it cannot really do case
handling on its own. The only other users of add_autofile in ikiwiki proper
is autoindex, and it always uses one case. Other third party plugins might
also need to add similar workarounds though.
| Joey Hess | 2011-04-30 |
* | meta: Add FOAF support. Closes: #623156 (Jonas Smedegaard) | Joey Hess | 2011-04-21 |
* | fix use of debug() without sprintf()•••Previous commit substituted a printf call (two arguments) for
debug (accepts only one). Interleave an sprintf call to resolve.
| Jon Dowland | 2011-04-20 |
* | use debug() for wrapper-generation print outs•••Use the debug() subroutine for printing out when wrappers
are generated. This has the effect of hiding the messages
unless verbose mode is enabled.
| Jon Dowland | 2011-04-20 |
* | Fix syntax of recently added JavaScript syntax in meta.pm (<script /> apparen... | Jonas Smedegaard | 2011-04-17 |
* | meta: Fix bug in loading of HTML::Entities that can break inline archive=yes ... | Joey Hess | 2011-04-12 |
* | Merge remote-tracking branch 'levitte/master' | Joey Hess | 2011-03-30 |
|\ |
|
| * | * IkiWiki/Plugin/monotone.pm: monotone v0.48 has a small error that••• affects rcs_getctime. A small adjustment takes care of that.
| Richard Levitte | 2011-03-30 |
| * | * IkiWiki/Plugin/monotone.pm: implement rcs_getmtime | Richard Levitte | 2011-03-30 |
* | | look up avatar at comment post time•••There is a tension between looking up the avatar at post time
and build time. I have not yet decided which is better.
Lookup at build time has the benefit that if a user changes their
email address, or sets up their own federated libravatar
server, on rebuild their new avatar will show up.
It also allows getting a https version of the avatar easily if
the site was using http but was changed to use https.
And it can look up avatars for posts that have already been made.
Which is a nice thing, especially as we roll this out, eh?
But it has a drawback, that it depends on the sessiondb contents
for emails and so rebuilding a site w/o that will lose info.
And, it means dns lookups every time a comment is rendered. A page
with a lot of comments on it would render them all whenever another is
posted or the page is changed, and that could significantly slow things
down. (This could be amelorated by caching the lookups.)
Since I'm undecided, I have moved it into a function that could be called
either way. Currently looking up only at post time.
| Joey Hess | 2011-03-30 |