Improve block toggling.
[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                         <form id="notification-dismiss-template" class="hidden dismiss" action="dismissNotification.html" method="post">
19                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
20                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
21                                 <input type="hidden" name="notification" value="" />
22                                 <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
23                         </form>
24
25                         <%foreach notifications notification>
26                                 <div class="notification" id="<% notification.id|html>" lastUpdatedTime="<%notification.lastUpdatedTime|html>">
27                                         <%if notification.dismissable>
28                                                 <form class="dismiss" action="dismissNotification.html" method="post">
29                                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
30                                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
31                                                         <input type="hidden" name="notification" value="<% notification.id|html>" />
32                                                         <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
33                                                 </form>
34                                         <%/if>
35                                         <%include notification>
36                                 </div>
37                         <%/foreach>
38                 </div>
39
40                 <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
41                         <a class="picture" href="index.html">
42                                 <%ifnull !currentSone>
43                                         <img src="/WebOfTrust/GetIdenticon?identity=<% currentSone.id|html>&amp;width=80&amp;height=80" width="80" height="80" alt="Profile Avatar" />
44                                 <%else>
45                                         <img src="images/sone.png" width="80" height="80" alt="Sone is offline" />
46                                 <%/if>
47                         </a>
48                         <%ifnull ! currentSone>
49                                 <div id="home-sone">
50                                         <% currentSone|store key=sone>
51                                         <%include include/viewSone.html>
52                                 </div>
53                         <%/if>
54                         <form id="search" action="search.html" method="get">
55                                 <input type="text" name="query" value="" />
56                                 <button type="submit"><%= View.Search.Button.Search|l10n|html></button>
57                         </form>
58                 </div>