From 87fcaea0ce6c6d32d717d587d9e2ce6424ef6e99 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 18 May 2012 17:48:50 +0000 Subject: [PATCH] - web: show "run beta apps?" project pref if the project has any beta applications (don't require project to specify this in project_specific_prefs.inc) svn path=/trunk/boinc/; revision=25692 --- checkin_notes | 11 ++++++++++- html/project.sample/project_specific_prefs.inc | 10 ++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 7209606e7d..e34371f72c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3881,7 +3881,8 @@ Rom 15 May 2012 all_projects_list.xml David 18 May 2012 - - client/API/vboxwrapper: add an optional element to cc_config.xml. + - client/API/vboxwrapper: add an optional element + to cc_config.xml. If present, run VMs without the --headless option. client/ @@ -3892,3 +3893,11 @@ David 18 May 2012 samples/vboxwrapper/ vbox.cpp,h vboxwrapper.cpp + +David 18 May 2012 + - web: show "run beta apps?" project pref if the project + has any beta applications + (don't require project to specify this in project_specific_prefs.inc) + + html/project.sample/ + project_specific_prefs.inc diff --git a/html/project.sample/project_specific_prefs.inc b/html/project.sample/project_specific_prefs.inc index 1f4b491406..4431feb53c 100644 --- a/html/project.sample/project_specific_prefs.inc +++ b/html/project.sample/project_specific_prefs.inc @@ -64,6 +64,16 @@ if (APP_SELECT_PREFS) { $app_array = null; } +// see if we have any beta apps +// +$apps = BoincApp::enum("deprecated=0"); +foreach($apps as $app) { + if ($app->beta) { + $project_has_beta = true; + break; + } +} + function selected_app_text($prefs) { global $app_array; if (isset($prefs->app_ids)) {