From bd831f00434d4f67c7b58d1c4caab42cfe9287e0 Mon Sep 17 00:00:00 2001 From: adamch Date: Sat, 8 Dec 2007 20:02:07 +0000 Subject: [PATCH] Peeking into members' applications --- apps.mlt | 32 +++++++++++++++++++++++++++++++- user.mlt | 2 ++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/apps.mlt b/apps.mlt index c59d18a..8b9d1ea 100644 --- a/apps.mlt +++ b/apps.mlt @@ -6,7 +6,37 @@ val root = Group.inGroupNum 0; ref showNormal = true; -if $"vote" <> "" then +if $"show" <> "" then + showNormal := false; + val usr = Web.stoi ($"show"); + val user = Init.lookupUser usr; + val appl = App.lookupApp (#app user) %> + + + + + + + + + +
Received: <% #applied appl %>
Approved by: <% + ref first = true; + ref found = false; + val votes = App.votes (#id appl); + foreach (id, name) in votes do + if first then + first := false + else + %>, <% + end + %><% name %><% + if id = you then + found := true + %> [Unvote]<% + end + end %> <% if (iff board then not found else false) then %>[Vote]<% end %>
Username: <% #name appl %>
Real name: <% Web.html (#rname appl) %>
Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %>
Proposed uses: <% Web.htmlNl (#uses appl) %>
Other information: <% Web.htmlNl (#other appl) %>
+<% elseif $"vote" <> "" then Group.requireGroupName "board"; App.vote (you, Web.stoi ($"vote")) %>

Vote registered

<% diff --git a/user.mlt b/user.mlt index bf9e1c6..b590b64 100644 --- a/user.mlt +++ b/user.mlt @@ -52,4 +52,6 @@ end %> +

Show archived membership application

+ <% @footer[] %> -- 2.20.1