Commit Graph

65 Commits (a7454c0e3220153a1f770df796e45ef1c1ee95ae)

Author SHA1 Message Date
Joey Hess c5b3ea0dd4 avoid insane use of javascript "array" 2010-05-27 23:57:00 -04:00
Joey Hess c305303b42 hide local signin when nothing is selected 2010-05-10 16:04:28 -04:00
Joey Hess bf19c01f29 use labels 2010-05-08 16:16:38 -04:00
Joey Hess c3e9215e1f moved non-openid signin form into same page as openid selector; show/hide as buttons are pressed 2010-05-08 15:57:39 -04:00
Joey Hess f0914b386b Revert "add gmail button"
This reverts commit 32a79523bb.

Buggy and I need sleep.
2010-05-08 02:53:18 -04:00
Joey Hess 32a79523bb add gmail button
It uses the google profile openid url, which results in a nicer openid
than the o8/id url.
2010-05-08 02:38:54 -04:00
Joey Hess 541298e668 avoid setting cookie for promptless buttons
I think it is clearer to not have such a button appear pre-selected
when entering the signin page, because that may suggest to the user
they don't need to click on it, and yet they do.
2010-05-08 02:15:04 -04:00
Joey Hess ac8a91fe06 improve selector layout 2010-05-08 00:40:36 -04:00
Joey Hess f05043ed80 gardening openid provider list
- fix url to flickr profile
- remove blogger; google property and uses their openid system;
  wants to sign user up for a blogger blog
- remove technorati, which dropped openid provider support
- AOL seems to call it a username, not a screenname
2010-05-08 00:18:58 -04:00
Joey Hess 3a1d81bd9c avoid scaling favicons
chromium's rather impressive jaggy-free scaling spoiled me, but in
iceweasel, scaled favicons look crap
2010-05-07 21:54:58 -04:00
Joey Hess ede2d1b46d adapt to ikiwiki
Upstream ships a collection of icons, but the licences of them are very
unclear, since most seem to be taken from the various openid provider
websites. That can't be included in ikiwiki. So, instead hotlink to
favicons of sites, and for large display, include the site name.

Removed vidoop.com, which is gone.

If an url is passed to init as the second parameter, add a "Local Login"
provider, which just links to do=signin.
2010-05-07 21:21:04 -04:00
Joey Hess 0800d25f10 modify labels to input box for consistency 2010-05-07 20:25:43 -04:00
Joey Hess 0f2bdbb968 use ikiwiki's replacement openid logo in input box 2010-05-07 20:20:28 -04:00
Joey Hess 7d152f5be5 modify openid selector to not default to http:// for openid
ikiwiki doesn't care if the http:// is there, and it seems cleaner and less
annoying this way
2010-05-07 20:17:31 -04:00
Joey Hess f8c2a67b3c pretty openid login
* 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-07 20:14:25 -04:00
Joey Hess 1b8d2ce36b add minified jquery.js from openid-selector svn 2010-05-07 19:29:59 -04:00
Joey Hess 378c647768 patch hidden field setting code
Fixes http://code.google.com/p/openid-selector/issues/detail?id=11#c3
2010-05-07 19:10:50 -04:00
Joey Hess 76f6ff5f6b use me.yahoo.com
Fixes http://code.google.com/p/openid-selector/issues/detail?id=10
2010-05-07 19:02:55 -04:00
Joey Hess 7749350ecd r21 from http://code.google.com/p/openid-selector/source/checkout 2010-05-07 19:02:30 -04:00
Joey Hess e90d67d3c9 Moved javascript files under the ikiwiki/ directory, to avoid cluttering the top of the web root. This is another things that requires a wiki rebuild on upgrade to this version. 2010-04-24 00:54:59 -04:00
Joey Hess 0bd6c32766 fix file, should be symlink 2010-04-16 18:11:30 -04:00
Joey Hess ff422a1d89 Improve javascript onload handling.
I noticed the onload hook running twice sometimes when using chromium.
Change from using arguments.callee.done to a onload_done variable fixed it.
I guess that the callee differed in chromium.

Probably the cause of the problem is that chrome supports both
window.onload and document.addEventListener.
2009-12-12 15:47:47 -05:00
Joey Hess fa82be5524 add pagespec/sorting to underlay 2009-10-09 00:06:40 -04:00
Joey Hess e03d5c6a7c Remove deprecated ikiwiki/blog and ikiwiki/preprocessordirective pages from the basewiki. 2009-08-16 14:32:10 -04:00
Joey Hess ef003f48f4 Merge branch 'master' into po
Conflicts:
	debian/changelog
2009-05-19 13:07:47 -04:00
Joey Hess 2c74f09bb8 relativedate: Deal with clock skew.
If the server has a clock running a bit ahead of the web browsing client,
relativedate could cause somewhat confusing displays like "3 seconds from now"
for just posted things.

As a hack, avoid displaying times in the future if they're less than a
small slip forward. I chose 30 minutes because both client and server could
be wrong in different directions, while it's still close enough that "just
now" is not horribly wrong.
2009-04-23 13:39:42 -04:00
intrigeri 5c2f6cb893 Merge commit 'upstream/master' into prv/po 2009-01-01 13:34:00 +01:00
Joey Hess c1fa208f25 remove top-level directive page from basewiki 2008-12-24 16:29:31 -05:00
intrigeri 17bab92c31 added symlink to pagespec/po in basewiki to fix the build
else basewiki_brokenlinks.t fails.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 22:53:53 +01:00
Joey Hess ee1ccfa863 use relativedate as the css class for dates that should display relative 2008-10-20 19:22:22 -04:00
Joey Hess 002be0c87a partial support for calling onload once the DOM is ready
This adds support for gecko and newer versions of opera
to call onload once the DOM is ready, rather than waiting for
all images in the page to load. Makes relativedate behave
somewhat better.

Dealing with this means jumping into the browser
incompatability waters that I prefer to avoid.
Full solutions for most of the major browsers are listed here:
http://dean.edwards.name/weblog/2006/06/again/

However, no *license* is listed there, so I can't use that code. Also, the more
involved code appears to have various issues (such as the inline IE code not
working via https). So I only added the simple call to a hook needed
for gecko/opera.

It seems that the only standards-compliant way to do this is using the
`defer` attribute to a `script` tag, using an external script that will be
loaded once the DOM is ready, and can call onload. However, that has
browser compatability issues of its own, since not all browsers honor
`defer`.

Perhaps I should really just be using one of the javascript frameworks, that
include code to solve this for the major browsers. But something about them
still puts me off, and this issue is minor enough that I'm willing to live
with incomplete support for now.
2008-10-19 15:45:29 -04:00
Joey Hess 18806fa6b0 allow ikiwiki.js to be loaded twice w/o clobbering previous hooks
Clearly it's suboptimal for it to be loaded twice, but this is a quick fix
at least.
2008-10-18 12:47:08 -04:00
Joey Hess 7390a7a072 relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself. 2008-10-17 20:47:32 -04:00
Joey Hess 79b376f991 Add an underlay for javascript, and add ikiwiki.js containing some utility code.
* Add an underlay for javascript, and add ikiwiki.js containing some utility
  code.
* toggle: Stop embedding the full toggle code on each page using it, and
  move it to toggle.js in the javascript underlay.
2008-10-17 20:28:18 -04:00
Joey Hess e1bca54a59 replace subdir link with link to the one page from it we want 2008-09-12 16:22:22 -04:00
Joey Hess 0187c2ba0d Removed old redirecton pages from basewiki (helponformatting, markdown, openid, pagespec, preprocessordirective, subpage, wikilink). 2008-09-12 16:15:20 -04:00
Joey Hess e9468fd5eb Removed the obsolete blog page from the basewiki. ikiwiki/blog still remains, but is now deprecated too. 2008-09-11 20:15:25 -04:00
Joey Hess 135628f6d4 move inline docs to ikiwiki/directive/inline
ikiwiki/blog will be going away
2008-09-11 19:39:35 -04:00
Joey Hess 9921a4a8a1 Move the directive documentation into its own underlay, separate from basewiki, since it's sorta large compared to the rest of basewiki. 2008-09-11 18:41:26 -04:00
Joey Hess 0d945d6476 add robots directive to all directive pages
Since they'll be in an underlay, robots shouldn't index them, as with other
underlay pages.
2008-09-11 18:30:20 -04:00
Joey Hess 5e4767a594 misc minor changes 2008-09-11 18:29:07 -04:00
Joey Hess eb92d09360 squash redundant text
A lot of text was copies from templates to directive/template.
Remove most of it and have each page link to the other.
2008-09-11 18:23:32 -04:00
Joey Hess 15c768c1c0 reword after reorg
There was a duplicated paragraph, an example on the wrong page, and some
rewording needed after will's reorg.
2008-09-11 18:14:26 -04:00
Joey Hess 251247f79f removed demos that accompny examples
This is sorta unfortunate, but I don't want turning the plugin on the cause
php to be forked unnecessarily. And moving them back to the plugin page
doesn't make sense in this case.
2008-09-11 18:09:20 -04:00
Joey Hess 701720198f move demo back to plugin page 2008-09-11 18:00:25 -04:00
Joey Hess d48e55c3d9 move back demo and add example 2008-09-11 17:53:21 -04:00
Joey Hess aa37d64d6a move demo back to plugin and add example 2008-09-11 17:51:27 -04:00
Joey Hess bb9e397c08 move example 2008-09-11 17:41:33 -04:00
Joey Hess 5409da80df move example back 2008-09-11 17:31:26 -04:00
Joey Hess 1b55d78794 move example back to plugin 2008-09-11 17:29:08 -04:00