source: products/SimpleBlog/branches/plone-2.1-Blogging-APIs/skins/SimpleBlog/blogfolder_view.pt @ 3665

Last change on this file since 3665 was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 3.0 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
6<metal:css fill-slot="css_slot">
7    <link rel="stylesheet" type="text/css" media="screen" href="" tal:attributes="href string:$portal_url/SimpleBlogCSS.css" />
8</metal:css>
9
10<body>
11
12<div metal:fill-slot="main">
13    <tal:main-macro metal:define-macro="main"
14                tal:define="displayItems python:here.getDisplayItems();
15                    standardButtons python:here.simpleblog_tool.getShowStandardButtons();
16                    results python:here.simpleblog_tool.searchForEntries(here, fromHere=1,maxResults=0);
17                    displayMode python:here.getDisplayMode();
18                    b_size python:displayItems;
19                    b_start python:0;
20                    b_start request/b_start | b_start;
21                    Batch python:modules['Products.CMFPlone'].Batch;">
22                   
23        <h1  class="documentFirstHeading">
24            <img src="#" tal:attributes="src string:${here/portal_url}/${here/getIcon};alt here/title" />
25            <span tal:replace="here/title_or_id"/>
26        </h1>
27
28        <tal:icons tal:condition="here/document_actions/macros/document_actions">
29            <div metal:use-macro="here/document_actions/macros/document_actions">
30                Document actions (print, sendto etc)
31            </div>
32        </tal:icons>
33
34        <div class="documentDescription"
35             tal:content="structure here/Description">
36            description
37        </div>
38       
39        <div tal:condition="results" tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1);">
40            <tal:block tal:repeat="entry batch">
41                <tal:list tal:define="obj entry/getObject;headerSize python:3">
42                    <div metal:use-macro="here/SimpleBlog_macros/macros/?displayMode"/>
43                </tal:list>
44            </tal:block>
45            <div metal:use-macro="here/batch_macros/macros/navigation" />
46        </div>
47        <tal:info tal:condition="not: results">
48            <tal:block tal:define="hasEntries python:here.simpleblog_tool.blogHasEntries(here);
49                                             editPermission python:mtool.checkPermission('Modify portal content', here) ">
50                <p tal:condition="hasEntries">
51                    There are currently no published blog entries.
52                </p>
53                <p tal:condition="python: editPermission and hasEntries">
54                    To get a list of the already present (unpublished) entries, click on the contents
55                    tab or click <a href="folder_contents">here</a>.
56                </p>
57                <p tal:condition="not: hasEntries">
58                    There are currently no blog entries.
59                </p>
60            </tal:block>
61         </tal:info>
62    </tal:main-macro>
63</div>
64
65</body>
66
67</html>
Note: See TracBrowser for help on using the repository browser.