added link to today press review

This commit is contained in:
Frederic Peters 2009-05-25 09:32:21 +02:00
parent f57fbb8b1f
commit 2ac74a424b
4 changed files with 22 additions and 1 deletions

View File

@ -38,4 +38,7 @@ class RevuesDePresse(BaseContent):
schema = schema
_at_rename_after_creation = True
def getTodayLink(self):
return self.pressreviewsbaseurl + 'revue.PDF'
registerType(RevuesDePresse)

View File

@ -17,3 +17,6 @@ msgstr ""
"Preferred-Encodings: utf-8 latin1\n"
"Domain: revuesdepresse\n"
msgid "today_press_review"
msgstr "Revue de presse du jour"

View File

@ -14,3 +14,6 @@ msgstr ""
"Preferred-Encodings: utf-8 latin1\n"
"Domain: revuesdepresse\n"
msgid "today_press_review"
msgstr "Today Press Review"

View File

@ -17,6 +17,11 @@
<metal:cssslot fill-slot="css_slot">
<style type="text/css">
div.intro {
float: left;
width: 60%;
border: 1px solid black;
}
</style>
</metal:cssslot>
@ -32,12 +37,19 @@
</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<div class="intro">
<div tal:condition="here/description"
tal:content="structure here/description">
Description
</div>
</div>
<div tal:replace="structure provider:plone.abovecontentbody" />
<div class="calendars">
<a tal:attributes="href python: context.getTodayLink()"
i18n:translate="today_press_review">Today Press Review</a>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>