Joey Hess [Wed, 23 Jun 2010 23:32:53 +0000 (19:32 -0400)]
rcs_getctime and rcs_getmtime take relative filenames
There was some confusion about whether the filename was
relative to srcdir or not. Some test cases, and the bzr
plugin assumed it was relative to the srcdir. Most everything else
assumed it was absolute.
Changed it to relative, for consistency with the rest
of the rcs_ functions.
Joey Hess [Wed, 23 Jun 2010 21:35:21 +0000 (17:35 -0400)]
rcs_commit and rcs_commit_staged api changes
Using named parameters for these is overdue. Passing the session in a
parameter instead of passing username and IP separately will later allow
storing other session info, like username or part of the email.
Note that these functions are not part of the exported API,
and the prototype change will catch (most) skew, so I am not changing
API versions. Any third-party plugins that call them will need updated
though.
Joey Hess [Wed, 23 Jun 2010 20:56:50 +0000 (16:56 -0400)]
update for new rcs_commit_staged API
In the process, lost the commits from special usernames
when committing changed po files. Instead of trying to dummy up a session
object for the special username, I just don't pass one, and the commit will
appear to be from whatever user ikiwiki runs as.
Joey Hess [Wed, 23 Jun 2010 20:32:20 +0000 (16:32 -0400)]
stop using REMOTE_ADDR
Everywhere that REMOTE_ADDR was used, a session object is available, so
instead use its remote_addr method.
In IkiWiki::Receive, stop setting a dummy REMOTE_ADDR.
Note that it's possible for a session cookie to be obtained using one IP
address, and then used from another IP. In this case, the first IP will now
be used. I think that should be ok.
Joey Hess [Wed, 23 Jun 2010 20:05:49 +0000 (16:05 -0400)]
API: rcs_commit and rcs_commit_staged are passed a new parameter
that may contain the username component of the email address of
the user making the commit.
Joey Hess [Wed, 23 Jun 2010 18:05:57 +0000 (14:05 -0400)]
bugfix: record email-like links as page links
This way, an email-like link will be a mailto until a matching page
is created, then it will link to the page. And removing the page will
convert it back to a mailto.
Joey Hess [Wed, 23 Jun 2010 17:57:27 +0000 (13:57 -0400)]
simplify anchor handling
At least two bugfixes in here. First, an old bug;
\[[foo#0]] was displayed as [[foo]], losing the anchor
as the anchor text was false. Secondly, a new bug;
an email like foo#bar@baz should not check bestlink("foo@baz").
Bernd Zeimetz [Sun, 13 Jun 2010 23:18:33 +0000 (01:18 +0200)]
Enhance the link plugin to handle external links.
The following ways to create a link are supported now:
[[url]]
[[text|url]]
url can be one of the following:
- an internal wikilink: will be handled as before
- any other kind of URL, including mailto: proper links will be created:
<a href="url">url</a>
<a href="url">text</a>
- an email address:
<a href="mailto:url">url</a>
<a href="mailto:url">text</a>
Joey Hess [Wed, 16 Jun 2010 19:44:21 +0000 (15:44 -0400)]
force rebuild for theme change
For now, a rebuild is the only way to ensure the changed theme is used.
Ikiwiki normally will not realize style.css has changed, since themes
tend to have the same timestamp for the file.
Joey Hess [Wed, 16 Jun 2010 18:55:44 +0000 (14:55 -0400)]
tweak bzed's theme
* move dotted border from bottom inlinecontent to top inlinefooter,
and allow inlinefooter to clear floating content. This way, floating
images do not hang down through the dotted border
* don't reset inputs and textareas, it makes buttons in forms
all squash up together
* don't eliminate fieldsets, it makes the web setup page a
mess
* only force the size of the search box. ikiwiki generally picks
form field sizes with a reasonable good reason
* remove some custom css classes not used
* remove some trailing whitespace