Remove the executable bit from the guestbook high-replication demo.
[gae-samples.git] / cccwiki / templates / base.html
blob3aeddd18dd81f894fc3c6781757e16376c83455d
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5 <title>{% block title %}{{ application_name }}{% endblock %}</title>
6 <link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
7 <link href="/static/css/chrome.css" rel="stylesheet" type="text/css"/>
8 <script type="text/javascript">
10 function NewPage() {
11 var pageName = window.prompt("Enter the WikiName of your new page:");
12 if (pageName) {
13 location.href = pageName + "?mode=edit";
17 </script>
18 {% block head %}{% endblock %}
19 </head>
20 <body>
21 <div id="header">
22 <div class="top">
23 <div class="login">
24 {% if user %}
25 <span class="item nickname">{{ user.nickname }}</span> |
26 <span class="item"><a href="{{ logout_url|escape }}">Sign out</a></span>
27 {% else %}
28 <span class="item"><a href="{{ login_url|escape }}">Sign in</a></span>
29 {% endif %}
30 </div>
31 <div class="title"><a href="/"><img src="/static/images/logo.png" alt="Google Wiki"/></a></div>
32 </div>
33 <div class="bottom">
34 <div class="attribution">
35 {% if page.entity %}
36 Edited on {{ page.entity.modified|date:"D, M j, Y \a\t P" }} by
37 {% if page.user %}
38 {{ page.user.nickname }}
39 {% else %}
40 an anonymous user
41 {% endif %}
42 {% endif %}
43 </div>
44 <div class="buttons"><span class="item"><input type="button" value="New Page" onclick="NewPage()"/></span>{% block buttons %}{% endblock %}</div>
45 <div style="clear: both"></div>
46 </div>
47 </div>
48 <div id="body">{% block body %}{% endblock %}</div>
49 <div id="footer">
50 </div>
51 </body>
52 </html>