From 15d4d1aa7d3c5772247109e594d94a5314d1713a Mon Sep 17 00:00:00 2001 From: William MARTIN Date: Tue, 4 Oct 2011 22:45:51 +0200 Subject: [PATCH] Fix issue 713 : Wiki page have now a css for printer output --- NEWS.mdtext | 1 + src/IDF/templates/idf/wiki/view.html | 7 +++++- www/media/idf/css/print-wiki.css | 32 ++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 www/media/idf/css/print-wiki.css diff --git a/NEWS.mdtext b/NEWS.mdtext index f21fa02..3b2b1c4 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -19,6 +19,7 @@ or newer to properly run this version of Indefero! tags of open issue, and count of open tickets for each owner. - Improved home page with an customizable icon for each project. - The download section provide MD5 for each files. +- Wiki page have now a css for printer output (issue 713) ## Bugfixes diff --git a/src/IDF/templates/idf/wiki/view.html b/src/IDF/templates/idf/wiki/view.html index 42fba21..bacb131 100644 --- a/src/IDF/templates/idf/wiki/view.html +++ b/src/IDF/templates/idf/wiki/view.html @@ -1,5 +1,10 @@ {extends "idf/wiki/base.html"} -{block extraheader}{if $oldrev}{/if}{/block} + +{block extraheader} +{if $oldrev}{/if} + +{/block} + {block docclass}yui-t3{assign $inView=true}{/block} {block body} diff --git a/www/media/idf/css/print-wiki.css b/www/media/idf/css/print-wiki.css new file mode 100644 index 0000000..ba1eb38 --- /dev/null +++ b/www/media/idf/css/print-wiki.css @@ -0,0 +1,32 @@ +/* +# ***** BEGIN LICENSE BLOCK ***** +# This file is part of InDefero, an open source project management application. +# Copyright (C) 2008-2011 CĂ©ondo Ltd and contributors. +# +# InDefero is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# InDefero is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# ***** END LICENSE BLOCK ***** */ + +#hd, #ft, #context { + display: none; +} + +.yui-t3 #yui-main .yui-b { + margin: 0; +} + +#wiki-toc { + float: none; +}