added link to today press review
This commit is contained in:
parent
f57fbb8b1f
commit
2ac74a424b
|
@ -38,4 +38,7 @@ class RevuesDePresse(BaseContent):
|
|||
schema = schema
|
||||
_at_rename_after_creation = True
|
||||
|
||||
def getTodayLink(self):
|
||||
return self.pressreviewsbaseurl + 'revue.PDF'
|
||||
|
||||
registerType(RevuesDePresse)
|
||||
|
|
|
@ -17,3 +17,6 @@ msgstr ""
|
|||
"Preferred-Encodings: utf-8 latin1\n"
|
||||
"Domain: revuesdepresse\n"
|
||||
|
||||
msgid "today_press_review"
|
||||
msgstr "Revue de presse du jour"
|
||||
|
||||
|
|
|
@ -14,3 +14,6 @@ msgstr ""
|
|||
"Preferred-Encodings: utf-8 latin1\n"
|
||||
"Domain: revuesdepresse\n"
|
||||
|
||||
msgid "today_press_review"
|
||||
msgstr "Today Press Review"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue