X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/b6dd1aafb4c9cddf89b06c2eeac1b5277046ad9f..2581e0222b4def4ba8cc38b73edf0a3dfe425c1e:/apps.mlt diff --git a/apps.mlt b/apps.mlt index af6e1bf..82dccaa 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

<% @@ -37,7 +67,7 @@ elseif $"approve" <> "" then %>

Approve application for <% #name appl %>

"> - Message:
+ Message (will be added at the end of ~hcoop/portal/welcome.txt, so you might want to include some introductory text):

<% @@ -71,6 +101,12 @@ elseif $"cmd" = "approved" then Username: <% #name appl %> Real name: <% Web.html (#rname appl) %> E-mail address: <% #email appl %> + <% switch #paypal appl of + SOME s => %> PayPal: <% s %> + <% end; + switch #checkout appl of + SOME s => %> Google Checkout: <% s %> + <% end %> Forward e-mail? <% if #forward appl then %>yes<% else %>no<% end %> Proposed uses: <% Web.htmlNl (#uses appl) %> Other information: <% Web.htmlNl (#other appl) %> @@ -87,10 +123,8 @@ elseif $"add" <> "" then val appl = App.lookupApp id; App.add id %> -First, create this UNIX user: -
portal_adduser <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %>
- -

You should then run visudo to add <% #name appl %> to the MEMBERS group. If you're not transmitting <% #name appl %>'s password to him by other means, run savepass <% #name appl %> <password> to save it in ~<% #name appl %>/.pass. If <% #name appl %> is bootstrapping with public-key ssh, don't forget to run savekey <% #name appl %> <authorized_keys file location>.

+First, run this on deleuze: +
new-user <% #name appl %> "<% #rname appl %>"<% if #forward appl then %> "<% #email appl %>"<% end %>
@@ -104,8 +138,8 @@ First, create this UNIX user: <% end %> Initial transaction amount: - Initial transaction description: - Subscribe to hcoop-announce + Initial transaction description: + Groups: