From 6b8b767b19126e3dae16613dff8b15604763ac5d Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 19 Jan 2008 20:57:32 +0000 Subject: [PATCH] Mark pending requests with how long ago they were submitted --- apps.mlt | 8 ++++---- apt.mlt | 6 +++--- cert.mlt | 6 +++--- domain.mlt | 6 +++--- ip.mlt | 6 +++--- list.mlt | 6 +++--- quota.mlt | 6 +++--- sec.mlt | 6 +++--- util.sig | 2 ++ util.sml | 18 ++++++++++++++++++ 10 files changed, 45 insertions(+), 25 deletions(-) diff --git a/apps.mlt b/apps.mlt index c5c5d4c..5fe3f2a 100644 --- a/apps.mlt +++ b/apps.mlt @@ -13,7 +13,7 @@ if $"show" <> "" then val appl = App.lookupApp (#app user) %> - +
Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -86,7 +86,7 @@ elseif $"cmd" = "approved" then foreach appl in App.listApps App.ACCEPTED do %>


- +
Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -163,7 +163,7 @@ end %> <% foreach appl in App.listApps App.PENDING do %>


- +
Received: <% #applied appl %>
Received: <% #applied appl %> (<% Util.diffFromNow (#applied appl) %> ago)
Approved by: <% ref first = true; ref found = false; @@ -198,7 +198,7 @@ end %> <% if length votes >= 2 then %>Approve this member.
<% end %> Deny this application. <% end %> -<% end +<% end end %> <% @footer[] %> diff --git a/apt.mlt b/apt.mlt index 6ef3346..1cbfde5 100644 --- a/apt.mlt +++ b/apt.mlt @@ -76,7 +76,7 @@ elseif $"cmd" = "open" then


- +<% ref first = true; @@ -118,7 +118,7 @@ elseif $"cmd" = "list" then


By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Packages:
- +<% ref first = true; @@ -163,7 +163,7 @@ elseif $"mod" <> "" then
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Packages:
- +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: - +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Request: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -65,7 +65,7 @@ elseif $"cmd" = "list" then


- +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Request: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -89,7 +89,7 @@ elseif $"mod" <> "" then - +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Status: - +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Domain: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -48,7 +48,7 @@ elseif $"cmd" = "list" then


- +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Domain: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -72,7 +72,7 @@ elseif $"mod" <> "" then - +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Status: - + @@ -50,7 +50,7 @@ elseif $"cmd" = "list" then


By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Port: <% #data req %>
Reason: <% Web.html (#msg req) %>
- + @@ -75,7 +75,7 @@ elseif $"mod" <> "" then
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Port: <% #data req %>
Reason: <% Web.html (#msg req) %>
- +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: - +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
List name: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -44,7 +44,7 @@ elseif $"cmd" = "list" then


- +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
List name: <% #data req %>
Reason: <% Web.html (#msg req) %>
@@ -68,7 +68,7 @@ elseif $"mod" <> "" then - +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Status: - +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Request: <% Web.htmlNl (#data req) %>
Reason: <% Web.html (#msg req) %>
@@ -71,7 +71,7 @@ elseif $"cmd" = "list" then


- +
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Request: <% Web.htmlNl (#data req) %>
Reason: <% Web.html (#msg req) %>
@@ -95,7 +95,7 @@ elseif $"mod" <> "" then - +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Status: - + @@ -153,7 +153,7 @@ elseif $"cmd" = "list" then


By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Request: <% #data req %>
Msg: <% Web.html (#msg req) %>
- + @@ -177,7 +177,7 @@ elseif $"mod" <> "" then
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Request: <% #data req %>
Reason: <% Web.html (#msg req) %>
- +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Status: