source: products/quintagroup.quills.extras/trunk/quintagroup/quills/extras/browser/topic_listing.pt @ 812

Last change on this file since 812 was 812, checked in by chervol, 17 years ago

readme updated

File size: 2.1 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
2  lang="en-US"
3  metal:use-macro="context/main_template/macros/master"
4  i18n:domain="quills.app">
5
6  <metal:block fill-slot="head_slot">
7    <metal:macro use-macro="context/quills_header_macros/macros/feed-links" />
8  </metal:block>
9
10  <body>
11
12    <div metal:fill-slot="main" id="weblogtopics">
13
14      <h1 class="documentFirstHeading" i18n:translate="heading_topics">Topics</h1>
15
16      <div class="documentDescription"></div>
17
18      <tal:loop repeat="topic context/getTopics">
19        <div class="row"
20          tal:attributes="class python:repeat['topic'].even() and 'row even' or 'row odd'">
21          <div class="icon" style="width: 64px; height: 64px;"
22               tal:define="topicimage python:topic.getImage()"
23               tal:condition="topicimage">
24            <a href="#"
25               tal:attributes="href string:${request/URL0}/${topic/getId}">
26              <img src=""
27                   tal:attributes="src topicimage/absolute_url;
28                                   alt topic/getTitle" />
29            </a>
30          </div>
31          <div
32            tal:define="entries topic/getEntries">
33            <strong>
34              <a href="#"
35                 tal:content="topic/getTitle"
36                 tal:attributes="href string:${context/absolute_url}/${topic/getId}">_topic_link_</a>
37              (<span tal:content="python:len(topic)"></span>)
38            </strong>
39            <div class="discreet">
40              <tal:if condition="not:python:len(topic)" i18n:translate="label_no_posts">
41                No Posts
42              </tal:if>
43              <tal:if condition="python:len(topic)">
44                <span i18n:translate="label_last_post">Last Post:</span>
45                <a href=""
46                  tal:attributes="href python:view.getArchiveURLFor(entries[0])"
47                  tal:content="python:here.toLocalizedTime(view.getLastModified(topic), long_format=1)">
48                  August 16, 2001 at 23:35:59
49                </a>
50              </tal:if>
51            </div>
52          </div>
53        </div>
54      </tal:loop>
55
56    </div>
57  </body>
58</html>
Note: See TracBrowser for help on using the repository browser.