source: products/SimpleBlog/branches/plone-2.5/skins/SimpleBlog/simpleblog_view.pt @ 585

Last change on this file since 585 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="SimpleBlog">
5<body>
6<div metal:fill-slot="main">
7    <tal:main-macro metal:define-macro="main"
8      tal:define="displayItems python:here.getDisplayItems();
9                  displayMode displayMode | python:here.getDisplayMode();
10                  results python:here.getEntries(maxResults=0, sort=1, join=1, addCrossPostInfo=1);
11                  b_size python:displayItems;
12                  b_start python:0;
13                  b_start request/b_start | b_start;
14                  Batch python:modules['Products.CMFPlone'].Batch;">
15        <tal:block metal:use-macro="here/SimpleBlog_macros/macros/blogGlobals"/>
16        <div metal:use-macro="here/document_actions/macros/document_actions">
17            Document actions (print, sendto etc)
18        </div>
19        <h1 tal:content="object_title" class="documentFirstHeading">
20          Title or id
21        </h1>
22        <div metal:use-macro="here/document_byline/macros/byline">
23          Get the byline - contains details about author and modification date.
24        </div>
25        <tal:warning tal:condition="here/getWarnForUnpublishedEntries">
26            <tal:block tal:define="unpublishedEntries python:here.simpleblog_tool.getUnpublishedEntries(here);">
27            <div class="portalMessage simpleBlogUnpublishedWarningbox" tal:condition="unpublishedEntries">
28                There are <span tal:content="python:len(unpublishedEntries)" /> unpublished entries in this blog. To see and manage all the existing entries in this blog, click <a href="folder_contents">here</a>
29            </div>
30            </tal:block>
31        </tal:warning>
32        <p class="documentDescription"
33           tal:content="here/Description"
34           tal:condition="here/Description">
35            Description
36        </p>
37        <div tal:condition="results" tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1);">
38            <tal:block tal:repeat="entry batch"><tal:entry
39                       tal:define="obj python:entry;"><div metal:use-macro="here/SimpleBlog_macros/macros/?displayMode"/>
40                <br/>
41                </tal:entry></tal:block>
42            <div metal:use-macro="here/batch_macros/macros/navigation" />
43        </div>
44        <tal:info tal:condition="not: results">
45            <tal:block tal:define="hasEntries python:here.simpleblog_tool.blogHasEntries(here);">
46                <p tal:condition="hasEntries">
47                    There are currently no published blog entries.
48                </p>
49                <p tal:condition="python: hasEntries and not here.getWarnForUnpublishedEntries()">
50                    To get a list of the already present (unpublished) entries, click on the contents
51                    tab or click <a href="folder_contents">here</a>.
52                </p>
53                <p tal:condition="not: hasEntries">
54                    There are currently no blog entries.
55                </p>
56            </tal:block>
57         </tal:info>
58    </tal:main-macro>
59</div>
60</body>
61
62</html>
Note: See TracBrowser for help on using the repository browser.