source: products/SimpleBlog/trunk/skins/SimpleBlog/simpleblog_view.pt @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 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="displayMode displayMode | python:here.getDisplayMode();
9                  displayItems python:here.getDisplayItems();
10                  b_size python:displayItems;
11                  b_start here/getStart;
12                  results python:here.getEntries(maxResults=b_start+displayItems, sort=1, join=1, b_start=b_start,mode=displayMode,navigation=1);
13                  last python:results[1];">
14        <tal:block metal:use-macro="here/SimpleBlog_macros/macros/blogGlobals"/>
15        <div metal:use-macro="here/document_actions/macros/document_actions">
16            Document actions (print, sendto etc)
17        </div>
18        <h1 tal:content="object_title" class="documentFirstHeading">
19          Title or id
20        </h1>
21        <div metal:use-macro="here/document_byline/macros/byline">
22          Get the byline - contains details about author and modification date.
23        </div>
24        <tal:warning tal:condition="here/getWarnForUnpublishedEntries">
25            <tal:block tal:define="unpublishedEntries python:here.simpleblog_tool.getUnpublishedEntries(here);">
26            <div class="portalMessage simpleBlogUnpublishedWarningbox" tal:condition="unpublishedEntries">
27                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>
28            </div>
29            </tal:block>
30        </tal:warning>
31        <p class="documentDescription"
32           tal:content="here/Description"
33           tal:condition="here/Description">
34            Description
35        </p>
36        <div tal:condition="results" tal:define="batch python:results[0];">
37            <tal:block tal:repeat="entry batch"><tal:entry
38                       tal:define="obj entry/getObject"><div metal:use-macro="here/SimpleBlog_macros/macros/?displayMode"/>
39                <br/>
40                </tal:entry></tal:block>
41            <div metal:use-macro="here/blog_navigation_macros/macros/navigation"
42                 tal:condition="python:results[2]"/>
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.