From: joey Date: Fri, 11 May 2007 20:09:58 +0000 (+0000) Subject: * Make all templates have a footer div to ease themeing. Required template X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/190202dd4ee8c11dc60d5fa801ca19b4b7b0e3f6?ds=sidebyside * Make all templates have a footer div to ease themeing. Required template and style sheet updates, and unless you're using customised versions, you'll want to rebuild wikis on upgrade to this version to avoid inconsistencies. * Allow WIKINAME to to used in footers, as an example of something to put there. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 1471ae926..d92bdd330 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -318,6 +318,7 @@ sub cgi_editpage ($$) { #{{{ action => $config{cgiurl}, table => 0, template => scalar template_params("editpage.tmpl"), + wikiname => $config{wikiname}, ); run_hooks(formbuilder_setup => sub { diff --git a/debian/NEWS b/debian/NEWS index e66872b42..7a5808ac0 100644 --- a/debian/NEWS +++ b/debian/NEWS @@ -1,3 +1,12 @@ +ikiwiki (2.1) unstable; urgency=low + + Some wikis need to be rebuilt on upgrade to this version, due to changes to + page templates and the style sheet. If you listed your wiki in + /etc/ikiwiki/wikilist this will be done automatically when the Debian + package is upgraded. Or use ikiwiki-mass-rebuild to force a rebuild. + + -- Joey Hess Thu, 26 Apr 2007 15:50:36 -0400 + ikiwiki (2.00) unstable; urgency=low With the 2.0 release of ikiwiki, some major changes have been made to the diff --git a/debian/changelog b/debian/changelog index 6a4737aed..742ec135a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -24,8 +24,14 @@ ikiwiki (2.1) UNRELEASED; urgency=low * Updated Czech translation from Miroslav Kure. * Apply patch from Pawel to avoid using -L in Makefile as it's not available in older finds. + * Make all templates have a footer div to ease themeing. Required template + and style sheet updates, and unless you're using customised versions, + you'll want to rebuild wikis on upgrade to this version to avoid + inconsistencies. + * Allow WIKINAME to to used in footers, as an example of something to put + there. - -- Joey Hess Thu, 10 May 2007 14:56:07 -0400 + -- Joey Hess Fri, 11 May 2007 15:35:12 -0400 ikiwiki (2.00) unstable; urgency=low diff --git a/debian/postinst b/debian/postinst index 3f42a4029..018e04f78 100755 --- a/debian/postinst +++ b/debian/postinst @@ -4,7 +4,7 @@ set -e # Change this when some incompatible change is made that requires # rebuilding all wikis. -firstcompat=1.51 +firstcompat=2.1 if [ "$1" = configure ] && \ dpkg --compare-versions "$2" lt "$firstcompat"; then diff --git a/doc/bugs/Add_a_footer_div_on_all_pages_to_improve_theming.mdwn b/doc/bugs/Add_a_footer_div_on_all_pages_to_improve_theming.mdwn index 702cc3ce2..e0dd100fa 100644 --- a/doc/bugs/Add_a_footer_div_on_all_pages_to_improve_theming.mdwn +++ b/doc/bugs/Add_a_footer_div_on_all_pages_to_improve_theming.mdwn @@ -143,4 +143,7 @@ Indeed, the misc.tmpl, recentchanges.tmpl and editpage.tmpl templates lack such + + - \ No newline at end of file + + +> I took a more intrusive approach to avoid ugly names like "realfooter". +> [[done]] --[[Joey]] diff --git a/doc/style.css b/doc/style.css index c34d9b2d1..1cd856c53 100644 --- a/doc/style.css +++ b/doc/style.css @@ -39,7 +39,7 @@ clear: both; } -#footer { +#pageinfo { clear: both; margin: 1em 0; border-top: 1px solid #000; @@ -109,7 +109,7 @@ td.changelog { border: 1px solid #aaa; } -.pageinfo { +.pagedate { clear: both; font-style: italic; display: block; diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index dd3dfd704..e8d4228fa 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2007-05-10 14:57-0400\n" +"POT-Creation-Date: 2007-05-11 15:45-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -36,34 +36,34 @@ msgstr "" msgid "Preferences saved." msgstr "" -#: ../IkiWiki/CGI.pm:348 +#: ../IkiWiki/CGI.pm:349 #, perl-format msgid "%s is not an editable page" msgstr "" -#: ../IkiWiki/CGI.pm:427 ../IkiWiki/Plugin/brokenlinks.pm:24 +#: ../IkiWiki/CGI.pm:428 ../IkiWiki/Plugin/brokenlinks.pm:24 #: ../IkiWiki/Plugin/inline.pm:183 ../IkiWiki/Plugin/opendiscussion.pm:17 #: ../IkiWiki/Plugin/orphans.pm:28 ../IkiWiki/Render.pm:95 #: ../IkiWiki/Render.pm:166 msgid "discussion" msgstr "" -#: ../IkiWiki/CGI.pm:473 +#: ../IkiWiki/CGI.pm:474 #, perl-format msgid "creating %s" msgstr "" -#: ../IkiWiki/CGI.pm:490 ../IkiWiki/CGI.pm:505 ../IkiWiki/CGI.pm:516 -#: ../IkiWiki/CGI.pm:542 ../IkiWiki/CGI.pm:586 +#: ../IkiWiki/CGI.pm:491 ../IkiWiki/CGI.pm:506 ../IkiWiki/CGI.pm:517 +#: ../IkiWiki/CGI.pm:543 ../IkiWiki/CGI.pm:587 #, perl-format msgid "editing %s" msgstr "" -#: ../IkiWiki/CGI.pm:683 +#: ../IkiWiki/CGI.pm:684 msgid "You are banned." msgstr "" -#: ../IkiWiki/CGI.pm:715 +#: ../IkiWiki/CGI.pm:716 msgid "login failed, perhaps you need to turn on cookies?" msgstr "" diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index 02951210f..08f160881 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -86,5 +86,8 @@ Optional comment about this change:
+ diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl index 26889ac93..e1943baec 100644 --- a/templates/inlinepage.tmpl +++ b/templates/inlinepage.tmpl @@ -17,7 +17,7 @@ - + Posted diff --git a/templates/misc.tmpl b/templates/misc.tmpl index 56be11107..32e2c934e 100644 --- a/templates/misc.tmpl +++ b/templates/misc.tmpl @@ -23,5 +23,9 @@ + + diff --git a/templates/page.tmpl b/templates/page.tmpl index 5b3c90b5b..fd44a53be 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -59,6 +59,7 @@ +