Add scripts to create myops-getqueryview:
[myops.git] / web / query / templates / post.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>{{ title }} : {{ blogName }}</title>
5     <link rel="stylesheet" href="../../style/screen.css" type="text/css">
6   </head>
7   <body>
8     {{>header}}
9     <div id="content">
10       <h1>{{ title }}</h1>
11       <div id="post">
12         <span class="date">{{ date }}</span>
13         <div class="body">{{{ html }}}</div>
14       </div>
15       <div id="tags"></div>
16       <div id="comments">
17         <ul>
18           {{#comments}}
19             {{>comment}}
20           {{/comments}}
21         </ul>
22         <div id="profile"></div>
23       </div>
24     </div>    
25   </body>
26   {{>scripts}}
27   <script type="text/javascript" charset="utf-8">
28   $.CouchApp(function(app) {
29     app.post_id = "{{post_id}}";
30     $("#profile").evently($.extend(true, {}, app.ddoc.vendor.couchapp.evently.profile, app.ddoc.evently.profile), app);
31     $.evently.connect($("#account"), $("#profile"), ["loggedIn", "loggedOut"]);
32   });
33   </script>
34 </html>