[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/browser/
added stylesheet
Volker Bachschneider
vbachs at dzug.org
Tue Oct 12 09:46:21 EDT 2004
Log message for revision 28004:
added stylesheet
Changed:
U zversioning/trunk/src/versioning/demo/browser/configure.zcml
U zversioning/trunk/src/versioning/demo/browser/info.pt
A zversioning/trunk/src/versioning/demo/browser/proposal.css
U zversioning/trunk/src/versioning/demo/browser/view.py
-=-
Modified: zversioning/trunk/src/versioning/demo/browser/configure.zcml
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-12 13:43:07 UTC (rev 28003)
+++ zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-12 13:46:20 UTC (rev 28004)
@@ -105,6 +105,11 @@
view="AddProposal.html"
/>
+<browser:resource
+ name="proposal.css"
+ file="proposal.css"
+ />
+
<browser:icon
name="zmi_icon"
for="..interfaces.IVProposal"
Modified: zversioning/trunk/src/versioning/demo/browser/info.pt
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-12 13:43:07 UTC (rev 28003)
+++ zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-12 13:46:20 UTC (rev 28004)
@@ -1,29 +1,48 @@
<html metal:use-macro="context/@@standard_macros/view"
i18n:domain="vproposal">
-<body><div metal:fill-slot="body">
+<tal:block metal:fill-slot="style_slot">
+ <style type="text/css" media="all"
+ tal:content="string:@import url(${context/++resource++proposal.css});">
+ @import url(proposal.css);
+ </style>
+</tal:block>
+
+<body>
+
+<div metal:fill-slot="body">
+
<h1 tal:content="context/title">Versionable Proposal</h1>
- <div><h4 i18n:translate="">Use Case</h4>
+ <div class="cblock">
+ <h4 i18n:translate="">Use Case</h4>
<div tal:content="structure view/usecase | nothing">
- What Situations we will solve
- </div><a href="./@@EditUseCase.html" i18n:translate="">Edit</a>
+ What Situations we will solve
</div>
- <div><h4 i18n:translate="">Concept</h4>
+ <a href="./@@EditUseCase.html" i18n:translate="" class="edit">Edit</a>
+ </div>
+ <div class="cblock">
+ <h4 i18n:translate="">Concept</h4>
<div tal:content="structure view/concept | nothing">
- Technical Concept
- </div><a href="./@@EditConcept.html" i18n:translate="">Edit</a>
+ Technical Concept
</div>
- <div><h4 i18n:translate="">Todo</h4>
+ <a href="./@@EditConcept.html" i18n:translate="" class="edit">Edit</a>
+ </div>
+ <div class="cblock">
+ <h4 i18n:translate="">Todo</h4>
<div tal:content="structure view/todo | nothing">
- Steps to go
- </div><a href="./@@EditTodo.html" i18n:translate="">Edit</a>
+ Steps to go
</div>
- <div><h4 i18n:translate="">Open Issues</h4>
+ <a href="./@@EditTodo.html" i18n:translate="" class="edit">Edit</a>
+ </div>
+ <div class="cblock">
+ <h4 i18n:translate="">Open Issues</h4>
<div tal:content="structure view/issues | nothing">
- Open Issues
- </div><a href="./@@EditIssues.html" i18n:translate="">Edit</a>
+ Open Issues
</div>
+ <a href="./@@EditIssues.html" i18n:translate="" class="edit">Edit</a>
+ </div>
+</div>
-</div></body></html>
\ No newline at end of file
+</body></html>
\ No newline at end of file
Added: zversioning/trunk/src/versioning/demo/browser/proposal.css
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/proposal.css 2004-10-12 13:43:07 UTC (rev 28003)
+++ zversioning/trunk/src/versioning/demo/browser/proposal.css 2004-10-12 13:46:20 UTC (rev 28004)
@@ -0,0 +1,10 @@
+div.cblock {
+ border-width:1px;
+ border-style:solid;margin-top:6px;
+ padding:2px;
+}
+
+a.edit {
+ display:block;
+ background:#EFEFEF;
+}
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/browser/view.py
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/view.py 2004-10-12 13:43:07 UTC (rev 28003)
+++ zversioning/trunk/src/versioning/demo/browser/view.py 2004-10-12 13:46:20 UTC (rev 28004)
@@ -10,7 +10,12 @@
self.usecase = self.render(context.usecase)
self.concept = self.render(context.concept)
self.todo = self.render(context.todo)
- self.issues = self.render(context.issues)
+ self.issues = self.render(context.issues)
+ #Silly hack
+ self.href = "display:block; background:#EFEFEF;"
+ self.cblock = "border-width:1px; \
+ border-style:solid;margin-top:6px; \
+ padding:2px;"
def render(self,content):
More information about the Zope-CVS
mailing list