Chez Fred/ ikiwiki

ikiwiki

ikiwiki is the wiki compiler powering this site. More info on http://ikiwiki.info.

Refresh template for ikiwiki

The Refresh template was design by styleshout and is distributed under a Creative Commons Attribution 2.5 License.

I am trying to adapt it to ikiwiki. It is a work in progress but already usable as you can see :-)

You need a local.css file and modified templates to use it.

Download

Git repository is here : Coming soon ;-)

And it could be browsed here : http://git.ccheznous.org/cgi-bin/gitweb.cgi?p=Refresh.git

And you can download a tarball here : Coming soon ;-)

TODO

Little things

  • Style for H4 is not aligned on the left with other styles - FIXED
  • Style for CODE produce text almost unreadable - FIXED
  • Check that FORM in templates are coded the same way that generated ones

Format all messages the same way in order to style them all

Three types of messages : info, warning, error

Style template : <p class="[info|warning|error]"><b>header</b><br/>details</p>

Add to IkiWiki.pm 3 new subroutines : - DONE

  • format_error_message()
  • format_warning_message()
  • format_info_message()

Modify error() subroutine in IkiWiki.pm to use format_error_message(): - DONE

Message inventory

Info ones :

  • "You need to log in first." located in IkiWiki/CGI.pm - DONE
  • "Preferences saved." located in IkiWiki/CGI.pm - DONE
  • "Account creation successful. Now you can Login." located in IkiWiki/Plugin/passwordauth.pm - DONE
  • "Your password has been emailed to you." located in IkiWiki/Plugin/passwordauth.pm - DONE

Warning ones :

Error ones :

  • When saving a page (after editing it) : Four error messages located in templates/editpage.tmpl - DONE
  • Errors reported by CGI::FormBuilder : How to style them ?
    • It is no longer possible since CGI::FormBuilder 3.03 where tags have been removed from messages :-(
    • The only way to change that is patch CGI:FormBuilder (lib/CGI/FormBuilder.pm) where the tag <p> is hardcoded
    • Only 3 messages are concerned: form_invalid_text, form_required_text, form_confirm_text. See http://www.formbuilder.org/download/CGI-FormBuilder-3.05/docs/CGI/FormBuilder/Messages.html
    • For form_invalid_text and form_required_text, need to patch text() subroutine in lib/CGI/FormBuilder.pm
    • For form_confirm_text : In fact, I don't think this message is concerned ;-)
Last edited Mon Apr 21 22:45:04 2008