PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/www/dsp/list-pages.dsp

http://github.com/cgay/wiki
Unknown | 52 lines | 47 code | 5 blank | 0 comment | 0 complexity | a05f6e3e8c55efa77041ebba46a44a37 MD5 | raw file
 1<%dsp:include url="xhtml-start.dsp"/>
 2<%dsp:taglib name="wiki"/>
 3<head>
 4  <title>Dylan Wiki: Pages</title>
 5  <%dsp:include url="meta.dsp"/>
 6</head>
 7<body>
 8  <%dsp:include url="header.dsp"/>
 9  <div id="midsection">
10    <div id="navigation">
11      <wiki:include-page title="Wiki Left Nav"/>
12    </div>
13    <div id="content">               
14      <h2>Pages</h2>
15
16      <dsp:show-page-errors/>
17      <dsp:show-page-notes/>
18
19      <dsp:when test="query-tagged?">
20        <ul class="cloud" id="query-tags">
21          <wiki:list-query-tags>
22            <li><wiki:show-tag/></li>
23          </wiki:list-query-tags>
24        </ul>
25      </dsp:when>
26      <form action="<wiki:base/>/page/list" method="post">
27        <ul class="striped big">
28          <li class="page">
29            <input type="text" name="query"
30                   value="<dsp:get name='query' context='request,page'/>"/>
31            <input type="submit" name="go" value="Find"/>
32          </li>
33
34          <!-- display the current page of the wiki page list -->
35          <dsp:loop over="wiki-pages" context="page" var="info">
36            <li class="page">
37              <dsp:get name="info[when-published]"/>
38              <a href="<wiki:base/>/page/view/<dsp:get name='info[title]'/>"><dsp:get name="info[title]"/></a>,
39              changed by <dsp:get name="info[latest-authors]"/>
40            </li>
41          </dsp:loop>
42
43        </ul>
44      </form>
45      <!-- display the paginator for the wiki page list -->
46      <dsp:show-page-links name="wiki-pages" url="/wiki/page/list?page=" query-value="page" />
47
48    </div>
49  </div>
50  <%dsp:include url="footer.dsp"/>
51</body>
52</html>