use loops-specific print.css, hiding all parts not needed in printed output
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4076 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
2d6b34f8a7
commit
b794361116
5 changed files with 31 additions and 9 deletions
|
@ -220,7 +220,7 @@
|
|||
|
||||
|
||||
<metal:actions define-macro="object_actions">
|
||||
<div class="object-actions"
|
||||
<div id="object-actions" class="object-actions"
|
||||
tal:define="target nocall:target|nothing;">
|
||||
<tal:actions repeat="action python:view.getActions('object', target=target)">
|
||||
<metal:action use-macro="action/macro" />
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
|
||||
<resource name="loops.css" file="lobo/lobo.css"
|
||||
layer="loops.browser.skin.Lobo" />
|
||||
<resource name="print.css" file="lobo/print.css"
|
||||
layer="loops.browser.skin.Lobo" />
|
||||
<resource name="custom.css" file="lobo/custom.css"
|
||||
layer="loops.browser.skin.Lobo" />
|
||||
<resource name="favicon.png" file="loops_favicon.png"
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
tal:attributes="class python:
|
||||
'body container' + (view.request.get('showgrid') and ' showgrid' or '')">
|
||||
|
||||
<div metal:define-macro="global">
|
||||
<div id="top"
|
||||
metal:define-macro="global">
|
||||
<div class="span-8 last"
|
||||
metal:define-slot="top">
|
||||
<a name="top" metal:define-slot="logo"
|
||||
|
@ -15,7 +16,7 @@
|
|||
tal:attributes="src string:${resourceBase}logo.png" /></a>
|
||||
<hr />
|
||||
</div>
|
||||
<div class="prepend-4 span-4 last"
|
||||
<div id="top-actions" class="prepend-4 span-4 last"
|
||||
metal:define-slot="top-actions">
|
||||
<tal:action repeat="macro controller/macros/top_actions">
|
||||
<metal:action use-macro="macro" />
|
||||
|
@ -37,7 +38,7 @@
|
|||
</metal:content>
|
||||
</div>
|
||||
|
||||
<div class="span-2 last">
|
||||
<div id="portlets" class="span-2 last">
|
||||
<tal:portlet repeat="macro controller/macros/portlet_left">
|
||||
<metal:portlet use-macro="macro" />
|
||||
</tal:portlet>
|
||||
|
|
17
browser/skin/lobo/print.css
Normal file
17
browser/skin/lobo/print.css
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
$Id$
|
||||
|
||||
*/
|
||||
|
||||
body {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#top, #portlets, #footer, #comments, #object-actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
color: Black;
|
||||
}
|
|
@ -2,9 +2,10 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
|
||||
<metal:comments define-macro="comments"
|
||||
tal:define="comments nocall:view/comments"
|
||||
tal:condition="comments/allowed">
|
||||
<div id="comments"
|
||||
metal:define-macro="comments"
|
||||
tal:define="comments nocall:view/comments"
|
||||
tal:condition="comments/allowed">
|
||||
<br />
|
||||
<h2 i18n:translate="">Comments</h2>
|
||||
<metal:comments define-macro="comments_listing"
|
||||
|
@ -24,14 +25,15 @@
|
|||
</div>
|
||||
</tal:comment>
|
||||
</metal:comments>
|
||||
<div metal:define-macro="comments_button_add"
|
||||
<div id="comments-button-add"
|
||||
metal:define-macro="comments_button_add"
|
||||
tal:define="comments nocall:comments|nocall:view/comments"
|
||||
class="button">
|
||||
<a i18n:translate=""
|
||||
tal:attributes="href comments/addUrl;
|
||||
onClick comments/addOnClick">Add Comment</a>
|
||||
</div>
|
||||
</metal:comments>
|
||||
</div>
|
||||
|
||||
|
||||
<metal:block define-macro="create_comment">
|
||||
|
|
Loading…
Add table
Reference in a new issue