templatize (partialy) the summary page.
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 15 Jul 2011 11:47:15 +0000 (11:47 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:35:24 +0000 (21:35 +0000)
webcit/static/t/summary/hedaer.html [new file with mode: 0644]
webcit/static/t/summary/page.html [new file with mode: 0644]
webcit/static/t/summary/trailer.html [new file with mode: 0644]
webcit/static/t/summary_header.html [deleted file]
webcit/static/t/summary_trailer.html [deleted file]

diff --git a/webcit/static/t/summary/hedaer.html b/webcit/static/t/summary/hedaer.html
new file mode 100644 (file)
index 0000000..254d029
--- /dev/null
@@ -0,0 +1,16 @@
+<!-- begin summary_header.html -->
+<script language="javascript" type="text/javascript">
+  document.onkeydown = CtdlMsgListKeyPress;
+</script>
+<div id="message_list_hdr">
+<table cellspacing=0 style="width:100%%">
+<tr>
+<th class="col1"><?_("Subject")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("subject")>&amp;SortBy=<?SORT:NEXT("subject")>"><img src="<?SORT:ICON("subject")>" /></a></th>
+<th class="col2"><?_("Sender")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("sender")>&amp;SortBy=<?SORT:NEXT("sender")>"><img src="<?SORT:ICON("sender")>" /></a></th>
+<th class="col3"><?_("Date")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("date")>&amp;SortBy=<?SORT:NEXT("date")>"><img border="0" src="<?SORT:ICON("date")>" /></a></th>
+</tr>
+</table>
+</div>
+<div id="message_list">
+<div id="message_list_body">
+<!-- end summary_header.html -->
diff --git a/webcit/static/t/summary/page.html b/webcit/static/t/summary/page.html
new file mode 100644 (file)
index 0000000..b1e4ea3
--- /dev/null
@@ -0,0 +1,85 @@
+<?=("summary_header">
+<div id="banner" class="banner">
+  <table border=0><tr>
+      <td><img src="static/webcit_icons/essen/32x32/summary.png"></td>
+      <td><h1><?_("Summary page for ")><??("COND:LOGGEDIN", 1)><?CURRENT_USER("X")><??("X", 1)><?!("COND:LOGGEDIN", 2)><?SERV:HUMANNODE("X")><??("X", 2)></h1><h2><?TIME:NOW)></h2></td></tr></table>
+  <div id="actiondiv">
+    <ul class="room_actions">
+      <li class="start_page"><?OFFERSTARTPAGE></li></ul>
+  </div>
+</div>
+
+<?--("
+* You guessed it ... we're going to refresh using ajax.
+* In the future we might consider updating individual sections of the summary
+* instead of the whole thing.
+")>
+<div id="content" class="service">
+  summary_inner_div();
+</div>
+<script type="text/javascript">
+ new Ajax.PeriodicalUpdater('msg_inner', 'new_messages_html',
+                            { method: 'get', frequency: 60 }  );
+ new Ajax.PeriodicalUpdater('tasks_inner', 'tasks_inner_html',
+                            { method: 'get', frequency: 120 }  );
+ new Ajax.PeriodicalUpdater('calendar_inner', 'calendar_inner_html',
+                            { method: 'get', frequency: 90 }  );
+ new Ajax.PeriodicalUpdater('do_template', 'template=who_summary',
+                            { method: 'get', frequency: 30 }  );
+</script>
+
+<table width="98%%" cellspacing="3" cellpadding="0">
+  <tr valign=top>
+    <td width=33%>
+      <div class="box">        
+       <div class="boxlabel">  
+         <?_("Messages")>
+       </div><div class="boxcontent">  
+         <div id="msg_inner">
+           <?SUMMARY:NEWMESSAGES_SELECTION>    new_messages_section();
+      </div></div></div>
+    </td>
+    <td width=33%>
+      <div class="box">        
+       <div class="boxlabel">  
+         <?_("Tasks")>
+       </div><div class="boxcontent">  
+         <div id="tasks_inner">        
+           <?SUMMARY:TASKSSECTION)>tasks_section();
+      </div></div></div>
+    </td>
+    <td width=33%>
+      <div class="box">        
+       <div class="boxlabel">  
+       <?_("Today&nbsp;on&nbsp;your&nbsp;calendar")>
+       </div><div class="boxcontent">  
+         <div id="calendar_inner">
+           <?SUMMARY:CALENDAR_SECTION)calendar_section();
+              </div></div></div>
+    </td>
+    
+  </tr><tr valign=top>
+
+    <td colspan=2>
+      <div class="box">        
+       <div class="boxlabel">  
+         <?_("Who's&nbsp;online&nbsp;now")>
+       </div><div class="boxcontent">
+         <div id="who_inner"><?=("who_summary")></div></div></div>
+    </td>
+    <td width=33%>
+      <div class="box">        
+       <div class="boxlabel">  
+         <?_("About&nbsp;this&nbsp;server")>
+       </div><div class="boxcontent">  
+         <div id="info_inner"> 
+               <?_("You are connected to")> <?SERV:HUMANNODE>,
+               <?_("running")> <?SERV:SOFTWARE> 
+               <?_("with")> <?PACKAGESTRING>, 
+               <?("server build")> <?SERV:REV_LEVEL>
+               <?("and located in")> <?SERV:BBS_CITY>.
+               <?("Your system administrator is")> <?SERV:ADMIN>
+      </div></div></div>
+    </td>
+</tr></table>
+<?=("summary_trailer")>
diff --git a/webcit/static/t/summary/trailer.html b/webcit/static/t/summary/trailer.html
new file mode 100644 (file)
index 0000000..5a3ac48
--- /dev/null
@@ -0,0 +1,6 @@
+</div>
+</div>
+<div id="resize_msglist" onMouseDown="CtdlResizeMsgListMouseDown(event)">
+<hr>
+</div>
+<div id="preview_pane">
diff --git a/webcit/static/t/summary_header.html b/webcit/static/t/summary_header.html
deleted file mode 100644 (file)
index 254d029..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<!-- begin summary_header.html -->
-<script language="javascript" type="text/javascript">
-  document.onkeydown = CtdlMsgListKeyPress;
-</script>
-<div id="message_list_hdr">
-<table cellspacing=0 style="width:100%%">
-<tr>
-<th class="col1"><?_("Subject")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("subject")>&amp;SortBy=<?SORT:NEXT("subject")>"><img src="<?SORT:ICON("subject")>" /></a></th>
-<th class="col2"><?_("Sender")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("sender")>&amp;SortBy=<?SORT:NEXT("sender")>"><img src="<?SORT:ICON("sender")>" /></a></th>
-<th class="col3"><?_("Date")><a href="readfwd?startmsg=1&amp;maxmsgs=9999999&amp;is_summary=1&amp;SortOrder=<?SORT:ORDER("date")>&amp;SortBy=<?SORT:NEXT("date")>"><img border="0" src="<?SORT:ICON("date")>" /></a></th>
-</tr>
-</table>
-</div>
-<div id="message_list">
-<div id="message_list_body">
-<!-- end summary_header.html -->
diff --git a/webcit/static/t/summary_trailer.html b/webcit/static/t/summary_trailer.html
deleted file mode 100644 (file)
index 5a3ac48..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-</div>
-</div>
-<div id="resize_msglist" onMouseDown="CtdlResizeMsgListMouseDown(event)">
-<hr>
-</div>
-<div id="preview_pane">