This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
PcfRevuesDePresse/skins/revuesdepresse/revuesdepresse_archives.pt

74 lines
2.2 KiB
XML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xml:lang="en-US"
lang="en-US"
metal:use-macro="here/main_template/macros/master"
i18n:domain="revuesdepresse">
<metal:javascriptslot fill-slot="javascript_head_slot">
<script type="text/javascript" language="JavaScript">
</script>
</metal:javascriptslot>
<metal:cssslot fill-slot="css_slot">
<style type="text/css">
div.archives table.ploneCalendar {
width: auto;
border: 1px solid #8cacbb;
margin: 1em;
float: left;
}
div.archives table.ploneCalendar th {
background: #dee7ec;
border-bottom: 1px solid #8cacbb;
}
div.archives br {
clear: both;
}
ul.range-of-years {
list-style: none;
}
ul.range-of-years li {
display: inline;
padding: 0 1em;
}
</style>
</metal:cssslot>
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main"
tal:define="kssClassesView context/@@kss_field_decorator_view;
getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;
year python:context.REQUEST.get('year')">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 class="documentFirstHeading"><span tal:replace="context/title"/> - <span tal:replace="python: context.getYear(year)"/></h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<div class="archives" tal:content="structure python: context.getArchives(year)"/>
<ul class="range-of-years">
<li tal:repeat="y python: context.getRangeOfYears()">
<a tal:attributes="href python: context.absolute_url() + '/archives?year=' + str(y)" tal:content="y"></a>
</li>
</ul>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>