Add scripts to create myops-getqueryview:
[myops.git] / web / query / templates / index.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>{{ title }}</title>
5     <link rel="stylesheet" href="../../style/screen.css" type="text/css"/>
6     <link rel="alternate" type="application/atom+xml" 
7       title="Atom Feed" href="{{ feedPath }}"/>
8   </head>
9   <body>
10     {{>header}}
11     <div id="tagcloud"></div>
12     <div id="content">
13       <h1>Recently...</h1>
14       <ul id="posts">
15         {{#posts}}
16           <li>
17             <h3><a href="{{ link }}">{{ title }}</a></h3>
18             {{#has_tags}}
19               <div class="tags">
20                 {{#tags}}
21                   <a href="{{link}}">{{tag}}</a>
22                 {{/tags}}
23               </div>
24             {{/has_tags}}
25             <div class="by">
26               <span class="date">{{ date }}</span> 
27               by {{author}}
28             </div>
29           </li>
30         {{/posts}}
31     </ul>
32     <div class="paginate">
33       <a href="{{ older }}">older posts</a>
34       <a href="{{5}}">5</a>
35       <a href="{{10}}">10</a>
36       <a href="{{25}}">25</a>      
37     </div>
38   </div>
39 </body>
40 {{>scripts}}
41 <script type="text/javascript" charset="utf-8">
42   $.couch.app(function() {
43     $("#tagcloud").evently(this.ddoc.evently.tagcloud, this);
44   }, {
45     db : "{{db}}",
46     design : "{{design}}"
47   });
48 </script>
49 </html>