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