summaryrefslogtreecommitdiff
path: root/IkiWiki
AgeCommit message (Collapse)Author
2010-05-21disable warnings when evaling setup filesJoey Hess
In particular, perl warns if a qw{} contains a #, but openids can. If the setup file has 'use warnings', it will turn warning messages back on, so it seems reasonable to squelch them by default.
2010-05-18Fix a typo in the last release.Joey Hess
2010-05-18simplify exampleJoey Hess
I've seen user(http://*) confuse someone who didn't know pagespecs to think that just http://* would moderate all comments to every page, or something like that.
2010-05-18Fix a bug that prevented matching deleted comments, and so did not update ↵Joey Hess
pages that had contained them. Problem is that by the time rendering calls render_dependent, %pagesources has had deleted files removed from it. So match_comment's lookup of files in there to see if they had the _comment extension failed. I had to introduce a hash that temporarily holds filenames of deleted pages to fix this. Note that unlike comment(), internal() had avoided this pitfall by being defined to match both internal and non-internal pages.
2010-05-17force scalar contextJoey Hess
2010-05-15fix typoJoey Hess
2010-05-15Revert "avoid showing comment post stuff on dynamic pages"Joey Hess
This reverts commit 4a6d5330e5b9554f1bd25b9025dd96200c6519c7. That was too ugly, the DYNAMIC test on page.tmpl will avoid the problem anyway -- just needs to be added.
2010-05-15avoid showing comment post stuff on dynamic pagesJoey Hess
If the site is configured to allow comments on *, then the comment post interface was being added to cgi pages like signin and prefs. This fixes it w/o requiring more page.tmpl changes. The pagetemplate hook is called by misctemplate with an empty page name for dynamic pages.
2010-05-14allow misctemplate callers to pass params to suppress actions etcJoey Hess
Suppress disiplay of small search for on search results page, and of Prefrences link on prefs page.
2010-05-14avoid showing redundant search box on search results pageJoey Hess
2010-05-14better misctemplate splitting sequenceJoey Hess
2010-05-14put back recentchangesurlJoey Hess
On second thought, misctemplate can use pagetemplate hooks to provide it, so it's better to keep back-compat, and allow full customisation of how it's displayed via the template.
2010-05-14bugfixJoey Hess
2010-05-14refactor template actionsJoey Hess
2010-05-14we want the recentchanges link to be the first floating actionJoey Hess
2010-05-14enable action bar on misctemplatesJoey Hess
So RecentChanges shows on the action bar there, convert recentchanges to use new pageactions hook, with compatability code to avoid breaking old templates.
2010-05-14remove, rename: Add guards against XSRF attacks.Joey Hess
2010-05-13po: guard against reimportationJoey Hess
If po is imported twice, bad things happen. Guard against that. I'm not sure what causes the double import; I saw it when websetup did a wiki rebuild. Carp failed to show a backtrace for the second call to import.
2010-05-08Use xhtml friendly pubdate setting.Joey Hess
2010-05-08moved non-openid signin form into same page as openid selector; show/hide as ↵Joey Hess
buttons are pressed
2010-05-08calendar: Display year name in title of month calendar.Joey Hess
Also, fix relative month calculations.
2010-05-08calendar: nextchange calculation bugfixJoey Hess
If a page had multiple calendars, the last one won and set nextchange. That's wrong; the calendar that needs to next update soonest should win.
2010-05-08calendar: Allow negative month to be specified. -1 is last month, etc. (And ↵Joey Hess
also negaitve years.)
2010-05-07Merge branch 'master' into commentreorgJoey Hess
2010-05-07scale display form to match openid sizeJoey Hess
2010-05-07Removed the openidsignup option.Joey Hess
2010-05-07bugfixJoey Hess
Always load IkiWiki::CGI so its cgi_signin is present, so we replace it.
2010-05-07bugfixJoey Hess
2010-05-07remove loginlabel, not usedJoey Hess
2010-05-07pretty openid loginJoey Hess
* openid: Incorporated a fancy openid-selector signin form. (http://code.google.com/p/openid-selector/) * openid: Use "openid_identifier" as the form field, as required by OpenID Authentication v2.0 spec.
2010-05-07patch hidden field setting codeJoey Hess
Fixes http://code.google.com/p/openid-selector/issues/detail?id=11#c3
2010-05-07avoid linking directly to ikiwiki.cgi?do=signinJoey Hess
Instead, add a custom do=commentsignin, that calls cgi_signin. This allows a plugin to inject a custom cgi_signin, that uses a different do= parameter, and have it be used consitently. (This was the only place to hardcode a link to do=signin.)
2010-05-07fix comment matching pagespecsJoey Hess
test isinternal first, because match_glob with internal => 1 also returns non-internal pages that match. This order should also be faster. Remove test to see if pagesources is set. isinternal will not succeed if it is not.
2010-05-07better wordingJoey Hess
2010-05-07bugfixJoey Hess
2010-05-07bugfixesJoey Hess
2010-05-07check that pagesources exists before testingJoey Hess
2010-05-07fix match_commentJoey Hess
2010-05-07nasty update to ugly hack to allow comment() pagespecs to workJoey Hess
2010-05-07Merge branch 'master' into commentreorgJoey Hess
Conflicts: debian/changelog
2010-05-07call delete hook even if only internal pages are deletedJoey Hess
2010-05-07avoid redir loop when going to an internal page that has no permalinkJoey Hess
2010-05-06respect permalinksJoey Hess
2010-05-06Delete hooks are passed deleted internal pages.Joey Hess
Necessary so search can remove its indexes for internal pages. But also, it seems it was an omission not to pass the deleted pages before.
2010-05-06inline: Call indexhtml when inlining internal pages, so their text can be ↵Joey Hess
indexed for searching.
2010-05-06Renamed postscan hook to indexhtml, to reflect its changed position.Joey Hess
Probably only the search plugin uses it, so this seemed safe.
2010-05-06simplify formbuilder stylesheet specificationJoey Hess
Since all forms are wrapped in a template that defines the actual stylesheets, formbuilder just has to be told to turn on stylesheet mode, not what file is the style sheet.
2010-05-06fix pagediff to not display as "preview"Joey Hess
I think originally, the page preview header was not displayed, so diff was hacked in using it.
2010-05-06moved comments pending moderationJoey Hess
* comments: Comments pending moderation are now stored in the srcdir alongside accepted comments, but with a `._comment_pending` extension. * This allows easier byhand moderation, as the "_pending" need only be stripped off and the comment be committed to version control. * The `comment_pending()` pagespec can be used to match such unmoderated comments, which makes it easy to add a feed of them, or a counter indicating how many there are. * Belatedly added a `comment()` pagespec.
2010-05-05refactorJoey Hess