From f40b78faace47a564e0efbc613fac85b69ed8b3a Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 9 Mar 2014 13:39:04 +0100 Subject: angeltypes about section --- includes/view/AngelTypes_view.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'includes/view') diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php index e8e1f56d..08305930 100644 --- a/includes/view/AngelTypes_view.php +++ b/includes/view/AngelTypes_view.php @@ -117,4 +117,19 @@ function AngelTypes_list_view($angeltypes, $admin_angeltypes) { )); } +function AngelTypes_about_view($angeltypes) { + $content = array( + '

' . _("Here is the list of teams and their tasks:") . '

' + ); + $parsedown = new Parsedown(); + foreach ($angeltypes as $angeltype) { + $content[] = '

' . $angeltype['name'] . '

'; + if ($angeltype['restricted']) + $content[] = info(_("This angeltype is restricted by double-opt-in by a team coordinator. Please show up at the according introduction meetings."), true); + $content[] = $parsedown->parse($angeltype['description']); + } + + return page($content); +} + ?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf