1 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
2 | xml:lang="en-US" lang="en-US" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
5 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
6 | i18n:domain="quills.app"> |
---|
7 | |
---|
8 | <head> |
---|
9 | <title></title> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | |
---|
13 | <metal:listEntries |
---|
14 | metal:define-macro="list-entries" |
---|
15 | tal:define="wvconfig view/getConfig; |
---|
16 | results entries | weblog/getEntries; |
---|
17 | Batch python:modules['Products.CMFPlone'].Batch; |
---|
18 | b_size wvconfig/entries_per_page; |
---|
19 | b_start python:0; |
---|
20 | b_start request/b_start | b_start; |
---|
21 | batch python:Batch(results, b_size, int(b_start), orphan=1); |
---|
22 | results python:view.sortWeblogEntriesToDates(batch); |
---|
23 | show_content not:wvconfig/only_excerpt_in_weblog_view | nothing; |
---|
24 | group_by_dates wvconfig/group_by_dates | nothing;"> |
---|
25 | |
---|
26 | <tal:if condition="b_start"> |
---|
27 | <div metal:use-macro="context/batch_macros/macros/navigation" /> |
---|
28 | </tal:if> |
---|
29 | |
---|
30 | <metal:block |
---|
31 | tal:repeat="day python:view.getWeblogEntriesDates(results)"> |
---|
32 | |
---|
33 | <tal:byDates tal:condition="group_by_dates"> |
---|
34 | |
---|
35 | <h2 tal:content="nothing | python:context.toLocalizedTime(day, context=context)" /> |
---|
36 | |
---|
37 | <tal:entries repeat="entry python:results[day]"> |
---|
38 | <metal:macro use-macro="context/quills_entry_macros/display-entry"/> |
---|
39 | <metal:macro use-macro="context/quills_entry_macros/belowentry"/> |
---|
40 | </tal:entries> |
---|
41 | </tal:byDates> |
---|
42 | |
---|
43 | <tal:notByDates tal:condition="not: group_by_dates"> |
---|
44 | <tal:entries repeat="entry python:results[day]"> |
---|
45 | <tal:block tal:define="secondLevel python:True"> |
---|
46 | <metal:macro use-macro="context/quills_entry_macros/display-entry"/> |
---|
47 | <metal:macro use-macro="context/quills_entry_macros/belowentry"/> |
---|
48 | </tal:block> |
---|
49 | </tal:entries> |
---|
50 | </tal:notByDates> |
---|
51 | |
---|
52 | </metal:block> |
---|
53 | |
---|
54 | <div metal:use-macro="context/batch_macros/macros/navigation" /> |
---|
55 | |
---|
56 | <div tal:condition="not: results"> |
---|
57 | <p i18n:translate="no_weblog_entries"> |
---|
58 | No weblog entries have been posted. |
---|
59 | </p> |
---|
60 | </div> |
---|
61 | </metal:listEntries> |
---|
62 | |
---|
63 | </body> |
---|
64 | </html> |
---|