Merge branch 'master' into next
[Sone.git] / src / main / resources / templates / include / head.html
1 <div id="sone" class="<%ifnull ! currentSone>online<%else>offline<%/if>">
2
3         <div id="formPassword"><% formPassword|html></div>
4
5         <script src="javascript/jquery-1.4.2.js" language="javascript"></script>
6         <script src="javascript/sone.js" language="javascript"></script>
7
8         <div id="main">
9
10                 <div id="notification-area">
11
12                         <form id="notification-dismiss-template" class="hidden dismiss" action="dismissNotification.html" method="post">
13                                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
14                                 <input type="hidden" name="returnPage" value="<% request.uri|html>" />
15                                 <input type="hidden" name="notification" value="" />
16                                 <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
17                         </form>
18
19                         <%foreach webInterface.notifications.all notification>
20                                 <div class="notification" id="<% notification.id|html>">
21                                         <%if notification.dismissable>
22                                                 <form class="dismiss" action="dismissNotification.html" method="post">
23                                                         <input type="hidden" name="formPassword" value="<% formPassword|html>" />
24                                                         <input type="hidden" name="returnPage" value="<% request.uri|html>" />
25                                                         <input type="hidden" name="notification" value="<% notification.id|html>" />
26                                                         <button type="submit"><%= Notification.Button.Dismiss|l10n|html></button>
27                                                 </form>
28                                         <%/if>
29                                         <% notification>
30                                 </div>
31                         <%/foreach>
32                 </div>
33
34                 <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
35                         <a class="picture" href="index.html">
36                                 <%ifnull !currentSone>
37                                         <img src="/WoT/GetIdenticon?identity=<% currentSone.id|html>&amp;width=80&amp;height=80" width="80" height="80" alt="Profile Avatar" />
38                                 <%else>
39                                         <img src="images/sone.png" width="80" height="80" alt="Sone is offline" />
40                                 <%/if>
41                         </a>
42                         <%ifnull ! currentSone>
43                                 <div id="home-sone">
44                                         <% currentSone|store key=sone>
45                                         <%include include/viewSone.html>
46                                         <%include include/updateStatus.html>
47                                 </div>
48                         <%/if>
49                 </div>