Comment out security stuff that we aren't using yet
[hcoop/zz_old/portal.git] / portal.mlt
index 5839663..3492692 100644 (file)
@@ -2,30 +2,9 @@
 val bal = Balance.lookupBalance (#bal you);
 @header [] %>
 
-<% if Group.inGroupNum 0 then %>
-<b><h3>Admin</h3></b>
-<a href="users">Members</a><br>
-<a href="groups">Groups</a><br>
-<a href="balances">Balances</a><br>
-<a href="kind">Contact kinds</a><br>
-<% end %>
-
-<b><h3>Your account</h3></b>
-
-<a href="pref">Preferences</a><br>
-<a href="money">Financial</a><br>
-<a href="contact">Contact information</a><br>
-<a href="location">Your geographic locations</a><br>
-<a href="link">Public URL directory</a><br>
+<% @payment [] %>
 
-<b><h3>Support requests</h3></b>
-
-<a href="domain">Request control of a domain with domtool</a><br>
-<a href="apt">Request Debian apt packages</a><br>
-<a href="list">Request a Mailman mailing list</a><br>
-<a href="support">Other support request</a><br>
-
-<h3><b><a href="money">Your recent account activity</a></b></h3>
+<h3><a href="money">Your recent account activity</a></h3>
 
 <table>
 <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
@@ -35,17 +14,24 @@ val bal = Balance.lookupBalance (#bal you);
 </table>
 <b>Balance: $<% #amount bal %></b>
 
-<h3><b><a href="poll">Current polls</a></b></h3>
+<% val polls = Poll.listCurrentPolls ();
+switch polls of
+       _::_ => %>
+<h3><a href="poll">Current polls</a></h3>
 
-<% foreach pol in Poll.listCurrentPolls () do %>
+<% foreach pol in polls do %>
 <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
 <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
 (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
-<% end %>
+<% end
+end %>
 
-<h3><b><a href="support">Open support issues</a></b></h3>
+<% val issues = Support.listOpenIssues (#id you);
+switch issues of
+       _::_ => %>
+<h3><a href="support">Open support issues</a></h3>
 
-<% foreach (name, issue) in Support.listOpenIssues (#id you) do %>
+<% foreach (name, issue) in issues do %>
 <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
 <% switch #status issue of
          Support.NEW => %>(New)<%
@@ -53,18 +39,7 @@ val bal = Balance.lookupBalance (#bal you);
        | Support.CLOSED => %>(Closed)<%
 end %>
 <br>
-<% end %>
-
-<h3><b>Public pages</b></h3>
-
-<a href="http://hcoop.net/dyn/members.html">Member directory</a><br>
-<a href="http://hcoop.net/dyn/locs.html">Member location summary</a><br>
-<a href="http://hcoop.net/dyn/sites.html">URL directory</a><br>
-
-<h3><b>Miscellaneous</b></h3>
-
-<a href="apps">Review pending membership applications</a><br>
-<a href="dir">Contact information directory</a><br>
-<a href="poll">Polls</a><br>
+<% end
+end;
 
-<% @footer [] %>
\ No newline at end of file
+@footer [] %>