resources/home.gtl 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 <!-- Copyright 2017 Google Inc. --> 3 <html> 4 <head> 5 <title>Gruyere: Home</title> 6 [[include:base.css]][[/include:base.css]] 7 <script src="/{{_unique_id}}/lib.js" text="text/javascript"> 8 </script> 9 </head> 10 11 <body> 12 [[include:menubar.gtl]][[/include:menubar.gtl]] 13 <div> 14 <h2 class='has-refresh'>Gruyere: Home</h2> 15 <div class='refresh'><a class='button' onclick='_refreshHome("{{_unique_id}}")' href='#'>Refresh</a></div> 16 </div> 17 <div class='content'> 18 <table width='100%'> 19 [[if:_profile.private_snippet]] 20 <tr> 21 <td></td> 22 <td> 23 Private snippet 24 </td> 25 <td> 26 <a class='button' id='show' onclick='_showHide("show", "hide")' href='#'>Show ►</a> 27 <span id='hide' style='display: none;'> 28 <a class='button' onclick='_showHide("show", "hide")' href='#'>Hide ◄</a> 29 <span id='private_snippet'>{{_profile.private_snippet:html}}</span></span> 30 </td> 31 </tr> 32 <tr><td colspan='3'><hr></td></tr> 33 [[/if:_profile.private_snippet]] 34 <tr><td colspan='3'><b>Most recent snippets:</b></td></tr> 35 [[for:_db]] 36 [[if:is_author]][[if:snippets.0]] 37 <tr> 38 <td> 39 [[if:icon]]<img alt='' height='32' width='32' src='{{icon:text}}'>[[/if:icon]] 40 </td> 41 <td> 42 <b><span style='color:{{color:text}}'>[[if:name]]{{name:text}}[[/if:name]][[if:!name]]{{_key}}[[/if:!name]]</span></b> 43 </td> 44 <td width='100%'><span id='{{_key}}'>{{snippets.0:html}}</span> 45 <br> 46 <a href='/{{_unique_id}}/snippets.gtl?uid={{_key}}'>All snippets</a> 47 <a href='{{web_site:text}}'>Homepage</a> 48 <br> 49 <br> 50 </td> 51 </tr> 52 [[/if:snippets.0]][[/if:is_author]] 53 [[/for:_db]] 54 </table> 55 </div> 56 </body> 57 </html>