Convert edit image page test to use new web page test base
[Sone.git] / src / main / resources / templates / include / head.html
1 <div id="sone">
2
3         <div id="formPassword"><% formPassword|html></div>
4         <div id="currentSoneId" class="hidden"><% currentSone.id|html></div>
5         <div id="loggedIn" class="hidden"><%ifnull !currentSone>true<%else>false<%/if></div>
6
7         <script src="javascript/jquery-1.4.2.js" language="javascript"></script>
8         <script src="javascript/jquery.url.js" language="javascript"></script>
9         <script src="javascript/jquery.fieldselection.js" language="javascript"></script>
10         <script src="javascript/sone.js" language="javascript"></script>
11
12         <div id="offline-marker"></div>
13
14         <div id="main">
15
16                 <div id="notification-area">
17
18                         <div id="notification-hash" class="hidden"><% notificationHash|html></div>
19
20                         <form id="notification-dismiss-template" class="hidden dismiss" action="dismissNotification.html" method="post">
21                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
22                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
23                                 <input type="hidden" name="notification" value="" />
24                                 <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
25                         </form>
26
27                         <%foreach notifications notification>
28                                 <div class="notification" id="<% notification.id|html>" lastUpdatedTime="<%notification.lastUpdatedTime|html>">
29                                         <%if notification.dismissable>
30                                                 <form class="dismiss" action="dismissNotification.html" method="post">
31                                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
32                                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
33                                                         <input type="hidden" name="notification" value="<% notification.id|html>" />
34                                                         <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
35                                                 </form>
36                                         <%/if>
37                                         <%include notification>
38                                 </div>
39                         <%/foreach>
40                 </div>
41
42                 <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
43                         <div class="avatar profile-avatar">
44                                 <a class="picture" href="index.html">
45                                         <%ifnull !currentSone>
46                                                 <%ifnull !currentSone.profile.avatar>
47                                                         <%currentSone.profile.avatar|image-link max-width==80 max-height==80 mode==enlarge title=="Profile Avatar">
48                                                 <%else>
49                                                         <img src="/WebOfTrust/GetIdenticon?identity=<% currentSone.id|html>&amp;width=80&amp;height=80" width="80" height="80" alt="Profile Avatar" />
50                                                 <%/if>
51                                         <%else>
52                                                 <img src="images/sone.png" width="80" height="80" alt="Sone is offline" />
53                                         <%/if>
54                                 </a>
55                         </div>
56                         <%ifnull ! currentSone>
57                                 <div id="home-sone">
58                                         <%include include/viewSone.html sone=currentSone>
59                                 </div>
60                         <%/if>
61                         <form id="search" action="search.html" method="get">
62                                 <input type="text" name="query" value="" />
63                                 <button type="submit"><%= View.Search.Button.Search|l10n|html></button>
64                         </form>
65                 </div>