Joey Hess
ea734d451c
better handling of relative permalinks
...
This way, do=goto will go to the page relative to
the current location, while the permalinks in feeds
will be absolute (unless an url is not configured at all).
2011-01-05 16:26:09 -04:00
Joey Hess
3eabf323f0
Fix permalinks to recentchanges items and comments, broken by last release.
...
permalinks always need to be full urls
2011-01-05 15:22:55 -04:00
Joey Hess
9efe370fa0
remove old unused baseurl parameter
...
This was I think a relic from when BASEURL was used in more templates than
use it now.
2011-01-05 14:57:26 -04:00
Joey Hess
4fb26f4e60
Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits.
2010-12-29 19:58:49 -04:00
Joey Hess
1182e9d0ee
use one-parameter form of urlto
2010-11-29 15:07:26 -04:00
Simon McVittie
1f019ac2aa
Use local paths for most references to pages
2010-11-23 00:19:10 +00:00
Simon McVittie
296e5cb2fd
Use local paths for the CGI URL
2010-11-23 00:12:17 +00:00
Joey Hess
9aa9604c36
add blank line
2010-10-08 19:26:31 -04:00
Joey Hess
7d5ac1cdd9
typo
2010-10-08 19:25:35 -04:00
Joey Hess
7e9ca590c7
add message field to revert form
2010-10-08 19:19:43 -04:00
Joey Hess
fb4ee927a0
propigate rcs_revert error message
...
and misc reorg
2010-10-08 18:59:04 -04:00
Joey Hess
c430792148
refactor
2010-10-08 18:50:24 -04:00
Joey Hess
faf94b5787
refactor check_canchange into IkiWiki library
2010-10-08 18:09:28 -04:00
Joey Hess
5c6f7a8d1b
fix rcs_prepedit implementation to match spec
2010-10-08 18:02:47 -04:00
Joey Hess
84111d96c4
make revert hooks optional
...
I removed the IkiWiki::rcs_ stubs for the revert hooks. Instead
recentchanges tests to see if the hooks are available and calls
them directly.
2010-10-08 17:54:12 -04:00
Joey Hess
238e8b95a5
convert rcs_revert to only stage the reversion
2010-10-06 15:08:12 -04:00
Joey Hess
58a0698d92
return to recentchanges page on form cancel
2010-10-06 15:02:06 -04:00
Joey Hess
d4fd8cd67d
put diff at end of revert form
2010-10-06 15:00:48 -04:00
Joey Hess
237ea79d71
remove rcs_showpatch
2010-10-06 14:39:10 -04:00
Joey Hess
3dce3cc1be
indentation and layout
2010-10-04 16:56:04 -04:00
Peter Gammie
7d1c3aa1cb
Minor tidy-ups.
2010-10-01 14:08:07 +10:00
Peter Gammie
8024a2636f
Complete rcs_preprevert and lightly test.
2010-10-01 14:06:00 +10:00
Peter Gammie
941755e466
Get things right after moving to a branch.
2010-09-29 15:43:44 +10:00
Peter Gammie
acecbad0ff
First cut at the revert plugin.
2010-09-29 15:14:19 +10:00
Joey Hess
9a32451986
finializing openid nickname support
...
Renamed usershort => nickname.
Note that this means existing user login sessions will not have the nickname
recorded, and so it won't be used for those.
2010-06-23 20:16:01 -04:00
Joey Hess
c46bcb425a
Add new optional field usershort to rcs_recentchanges.
...
Now the git plugin supports commits with author fields that look like:
Author: http://my.openid/ <me@web>
Then in recentchanges, the short username will be displayed, linking
to the openid.
Particularly useful for the horrible google openids, of course.
2010-06-23 15:54:52 -04:00
Joey Hess
3dd98a3b3f
put back recentchangesurl
...
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-14 20:38:08 -04:00
Joey Hess
d80a649073
bugfix
2010-05-14 20:29:16 -04:00
Joey Hess
377e82b16c
we want the recentchanges link to be the first floating action
2010-05-14 20:10:18 -04:00
Joey Hess
5a4c95cc35
enable action bar on misctemplates
...
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-14 20:04:02 -04:00
Joey Hess
34fff64e7b
setup file ordering
2010-02-12 06:35:52 -05:00
Joey Hess
a63929f6cc
Group related plugins into sections in the setup file, and drop unused rcs plugins from the setup file.
2010-02-11 22:24:15 -05:00
Joey Hess
8380a9d000
factor out a userpage function
...
Not yet exported, as only 4 quite core plugins use it.
2010-02-04 18:24:15 -05:00
Joey Hess
72b9482835
recentchanges: change to using do=goto links.
2009-04-01 19:18:43 -04:00
Simon McVittie
c886bea320
Split cgi_goto into a goto plugin
2009-01-31 23:01:10 +00:00
Simon McVittie
a981d6857f
recentchanges: delete CGI hook in favour of the global one
2009-01-31 14:49:25 +00:00
Joey Hess
678d467a40
finalise version 3.00 of the plugin api
2008-12-23 16:34:19 -05:00
Simon McVittie
05bb65fc68
recentchanges_link CGI: If the linked page is internal, use its permalink
...
This fixes a bug, that comments appear in recentchanges as broken links.
2008-12-22 23:02:08 +00:00
Joey Hess
bb93fccf06
Coding style change: Remove explcit vim folding markers.
2008-12-17 15:22:16 -05:00
Joey Hess
e307eeda3d
html escaping complication
...
Can't escape things to entities if the template then escapes the entities.
(aggregate doesn't have this problem.)
2008-11-18 02:48:24 -05:00
Joey Hess
15269fed64
improve escaping of wikilinks and preprocessor directives
...
The old method failed for '[' x 3.
2008-11-18 02:43:17 -05:00
Joey Hess
f0e58faefa
Add rel=nofollow to recentchanges_links for the same (weak) reasons it was earlier added to edit links.
2008-11-10 18:05:30 -05:00
Joey Hess
2b569f99d9
fix relativedate timezone inclusion
...
The machine parseable date needs to include a timezone.
Also, simplified the interface for date display.
2008-10-19 19:21:44 -04:00
Joey Hess
cb9a695443
fix url
2008-10-17 22:04:43 -04:00
Joey Hess
35c56622ea
tweak recentchanges permalink code
...
Need to handle the case where url is not set.
2008-10-17 21:54:42 -04:00
Joey Hess
fdb5da46b0
Patch for anchor-based change permalinks in recent changes feed
...
from JasonBlevins
2008-10-17 21:49:55 -04:00
Joey Hess
02ec92c6cb
make relativedate work for the dates on the recentchanges page
...
Having a always current relative date on recentchanges is very, very nice.
2008-10-17 21:21:07 -04:00
Joey Hess
9ec9d6901d
Export pagetitle, titlepage, linkpage.
2008-09-27 14:27:42 -04:00
Joey Hess
7351d545d9
Merge commit 'smcv/beautify'
...
Conflicts:
IkiWiki/Plugin/recentchanges.pm
Note that smcv's approach of using urlto also gets the url right when
redirecting to a non-html file, which is a better approach than my recent
fix to recentchanges
2008-09-27 13:00:48 -04:00
Joey Hess
83429adf04
decode utf-8 in recentchanges_link parameter
2008-09-26 15:40:01 -04:00