Make mass-mailto link use Bcc
[bpt/portal.git] / apps.mlt
index 00c2cfd..5fe3f2a 100644 (file)
--- a/apps.mlt
+++ b/apps.mlt
@@ -1,7 +1,7 @@
 <% @header [("title", ["Membership applications"])];
 
 val you = Init.getUserId ();
-val board = Group.inGroupName "board";
+val board = Group.reallyInGroupName "board";
 val root = Group.inGroupNum 0;
 
 ref showNormal = true;
@@ -13,7 +13,7 @@ if $"show" <> "" then
        val appl = App.lookupApp (#app user) %>
 
        <table class="blanks">
-       <tr> <td>Received:</td> <td><% #applied appl %></td> </tr>
+       <tr> <td>Received:</td> <td><% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)</td> </tr>
        <tr> <td>Approved by:</td> <td><%
                ref first = true;
                ref found = false;
@@ -86,7 +86,7 @@ elseif $"cmd" = "approved" then
        foreach appl in App.listApps App.ACCEPTED do %>
                <br><hr><br>
                <table class="blanks">
-               <tr> <td>Received:</td> <td><% #applied appl %></td> </tr>
+               <tr> <td>Received:</td> <td><% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)</td> </tr>
                <tr> <td>Approved by:</td> <td><%
                        ref first = true;
                        ref found = false;
@@ -124,7 +124,7 @@ elseif $"add" <> "" then
        App.add id %>
 
 First, run this on deleuze:
-<blockquote><tt>magic-create-user-wrapper <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %></tt></blockquote>
+<blockquote><tt>new-user <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %></tt></blockquote>
 
 <form action="users" method="post">
 <input type="hidden" name="app" value="<% #id appl %>">
@@ -163,7 +163,7 @@ end %>
 <% foreach appl in App.listApps App.PENDING do %>
        <br><hr><br>
        <table class="blanks">
-       <tr> <td>Received:</td> <td><% #applied appl %></td> </tr>
+       <tr> <td>Received:</td> <td><% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)</td></tr>
        <tr> <td>Approved by:</td> <td><%
                ref first = true;
                ref found = false;
@@ -198,7 +198,7 @@ end %>
        <% if length votes >= 2 then %><a href="apps?approve=<% #id appl %>">Approve this member.</a><br><% end %>
        <a href="apps?deny=<% #id appl %>">Deny this application.</a>
        <% end %>
-<% end
+<% end 
 end %>
 
-<% @footer[] %>
\ No newline at end of file
+<% @footer[] %>